summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-02 10:35:29 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-02 10:35:29 +0200
commit841d8a60935ea59b7ba7efb9788dc2ec40cf5689 (patch)
tree0083be46618fa438b565821745313250ba158dd2 /canvas
parent1fce9840512f15430bf98004269527f83cd3f0f8 (diff)
loplugin:redundantcast (clang-cl)
Change-Id: Ic61ed0cb1d64b27abe0007e28c7b261de3ab7114
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/directx/dx_9rm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/directx/dx_9rm.cxx b/canvas/source/directx/dx_9rm.cxx
index 2e755ee4d61f..c12f64a9be05 100644
--- a/canvas/source/directx/dx_9rm.cxx
+++ b/canvas/source/directx/dx_9rm.cxx
@@ -741,9 +741,9 @@ namespace dxcanvas
// a back buffer, and no way of falling back to a
// different canvas implementation.
ZeroMemory( &mad3dpp, sizeof(mad3dpp) );
- mad3dpp.BackBufferWidth = std::max(sal_Int32(maSize.getX()),
+ mad3dpp.BackBufferWidth = std::max(maSize.getX(),
sal_Int32(d3ddm.Width));
- mad3dpp.BackBufferHeight = std::max(sal_Int32(maSize.getY()),
+ mad3dpp.BackBufferHeight = std::max(maSize.getY(),
sal_Int32(d3ddm.Height));
mad3dpp.BackBufferCount = 1;
mad3dpp.Windowed = TRUE;