vcl: win: adjust some coordinates
This commit is contained in:
@@ -986,7 +986,7 @@ sal_Bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
|
|||||||
RECT aGutterRC = rc;
|
RECT aGutterRC = rc;
|
||||||
if( Application::GetSettings().GetLayoutRTL() )
|
if( Application::GetSettings().GetLayoutRTL() )
|
||||||
{
|
{
|
||||||
aGutterRC.right -= aValue.getNumericVal();
|
aGutterRC.right -= aValue.getNumericVal()+1;
|
||||||
aGutterRC.left = aGutterRC.right-3;
|
aGutterRC.left = aGutterRC.right-3;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -1043,9 +1043,9 @@ sal_Bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
|
|||||||
{
|
{
|
||||||
// adjust for gutter position
|
// adjust for gutter position
|
||||||
if( Application::GetSettings().GetLayoutRTL() )
|
if( Application::GetSettings().GetLayoutRTL() )
|
||||||
rc.right -= aValue.getNumericVal();
|
rc.right -= aValue.getNumericVal()+1;
|
||||||
else
|
else
|
||||||
rc.left += aValue.getNumericVal();
|
rc.left += aValue.getNumericVal()+1;
|
||||||
Rectangle aRect( ImplGetThemeRect( hTheme, hDC,
|
Rectangle aRect( ImplGetThemeRect( hTheme, hDC,
|
||||||
MENU_POPUPSEPARATOR, 0, Rectangle( rc.left, rc.top, rc.right, rc.bottom ) ) );
|
MENU_POPUPSEPARATOR, 0, Rectangle( rc.left, rc.top, rc.right, rc.bottom ) ) );
|
||||||
// center the separator inside the passed rectangle
|
// center the separator inside the passed rectangle
|
||||||
|
Reference in New Issue
Block a user