diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-05-16 21:48:02 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-05-18 08:06:38 +0300 |
commit | d89fa2bd4944625e2dbe56d5709a3f126db24f21 (patch) | |
tree | af8e22727ecb7f7d69acae2fa9c2430a6db28d43 /vcl/source/window/winproc.cxx | |
parent | e5736b9e4ded62cdeaa49649763392779d312e0a (diff) |
Clean up a set of RTL-related comments
It is fairly pointless to have a comment like "--- RTL --- (mirror
mouse pos)" in front of code that obviously is related to RTL anyway,
like "if( AllSettings::GetLayoutRTL() )". Also, the fact that many
comment were exactly the same indicates that they has been added as an
in-line version control change marker.
In other places, comments were informational, but no need for them to
include yet another metasyntax, "--- RTL ---". Just "RTL:" works fine.
Change-Id: I20feef308ed8ac9d32a8bf440fc20b442753c4ff
Diffstat (limited to 'vcl/source/window/winproc.cxx')
-rw-r--r-- | vcl/source/window/winproc.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index c66a2c91af47..c44b57db20b5 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -359,7 +359,7 @@ bool ImplHandleMouseEvent( const VclPtr<vcl::Window>& xWindow, MouseNotifyEvent { if( pChild->ImplIsAntiparallel() ) { - // - RTL - re-mirror frame pos at pChild + // re-mirror frame pos at pChild const OutputDevice *pChildWinOutDev = pChild->GetOutDev(); pChildWinOutDev->ReMirror( aMousePos ); } @@ -971,7 +971,7 @@ static bool ImplHandleKey( vcl::Window* pWindow, MouseNotifyEvent nSVEvent, if ( !pChild ) return false; - // --- RTL --- mirror cursor keys + // RTL: mirror cursor keys const OutputDevice *pChildOutDev = pChild->GetOutDev(); if( (aKeyCode.GetCode() == KEY_LEFT || aKeyCode.GetCode() == KEY_RIGHT) && pChildOutDev->HasMirroredGraphics() && pChild->IsRTLEnabled() ) @@ -2416,7 +2416,6 @@ bool ImplWindowFrameProc( vcl::Window* _pWindow, SalEvent nEvent, const void* pE if( AllSettings::GetLayoutRTL() ) { - // --- RTL --- (mirror paint rect) SalFrame* pSalFrame = pWindow->ImplGetWindowImpl()->mpFrame; const_cast<SalPaintEvent *>(pPaintEvt)->mnBoundX = pSalFrame->maGeometry.nWidth-pPaintEvt->mnBoundWidth-pPaintEvt->mnBoundX; } |