[Libreoffice-commits] core.git: vcl/win
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Fri Nov 27 13:27:13 UTC 2020
vcl/win/gdi/salnativewidgets-luna.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 4ca0a15af2a1bd9386f5a0d93e9616cf1d818535
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Nov 27 11:07:53 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Nov 27 14:26:31 2020 +0100
RECT members are of type LONG
Change-Id: I8c0ad0878903c729be7149f81f5844a4baea7883
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106753
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/vcl/win/gdi/salnativewidgets-luna.cxx b/vcl/win/gdi/salnativewidgets-luna.cxx
index 793b061e0e5c..9b50c7405d52 100644
--- a/vcl/win/gdi/salnativewidgets-luna.cxx
+++ b/vcl/win/gdi/salnativewidgets-luna.cxx
@@ -437,10 +437,10 @@ static void impl_drawAeroToolbar( HDC hDC, RECT rc, bool bHorizontal )
{
if ( rc.top == 0 && bHorizontal )
{
- const long GRADIENT_HEIGHT = 32;
+ const int GRADIENT_HEIGHT = 32;
- long gradient_break = rc.top;
- long gradient_bottom = rc.bottom - 1;
+ LONG gradient_break = rc.top;
+ LONG gradient_bottom = rc.bottom - 1;
GRADIENT_RECT g_rect[1] = { { 0, 1 } };
// very slow gradient at the top (if we have space for that)
@@ -478,7 +478,7 @@ static void impl_drawAeroToolbar( HDC hDC, RECT rc, bool bHorizontal )
// when done for the vertical ones too
if ( bHorizontal )
{
- long from_x, from_y, to_x, to_y;
+ LONG from_x, from_y, to_x, to_y;
from_x = rc.left;
to_x = rc.right;
More information about the Libreoffice-commits
mailing list