diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-02 10:35:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-02 10:35:29 +0200 |
commit | 841d8a60935ea59b7ba7efb9788dc2ec40cf5689 (patch) | |
tree | 0083be46618fa438b565821745313250ba158dd2 /canvas | |
parent | 1fce9840512f15430bf98004269527f83cd3f0f8 (diff) |
loplugin:redundantcast (clang-cl)
Change-Id: Ic61ed0cb1d64b27abe0007e28c7b261de3ab7114
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/directx/dx_9rm.cxx | 4 |
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; |