summaryrefslogtreecommitdiff
path: root/vcl/source/window/cursor.cxx
diff options
context:
space:
mode:
authorLuc Castermans <luc.castermans@gmail.com>2014-02-18 21:31:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-18 20:38:59 +0000
commite52754170270e6b799af207f43369e530d9e176e (patch)
tree69907120095bfe612b3398f5e9210386f2d59cdf /vcl/source/window/cursor.cxx
parent12b78edde94af7550b14382d9bfd1c77854e5fb0 (diff)
Translated German comments - find-german-comments clean
Change-Id: I2521bb87dbd0d4f896b99865c741cc4900b4d31c Reviewed-on: https://gerrit.libreoffice.org/8113 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/window/cursor.cxx')
-rw-r--r--vcl/source/window/cursor.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx
index 77baa2b3b317..64c3ee9b2e8f 100644
--- a/vcl/source/window/cursor.cxx
+++ b/vcl/source/window/cursor.cxx
@@ -135,17 +135,16 @@ void Cursor::ImplDraw()
mpData->mnDirection = mnDirection;
long nOffsetY = pWindow->LogicToPixel( Size( 0, mnOffsetY ) ).Height();
- // Position um den Offset korrigieren
+ // correct the position with the offset
mpData->maPixPos.Y() -= nOffsetY;
mpData->maPixRotOff = mpData->maPixPos;
mpData->maPixRotOff.Y() += nOffsetY;
- // Wenn groesse 0 ist, nehmen wir die breite, die in den
- // Settings eingestellt ist
+ // use width (as set in Settings) if size is 0,
if ( !mpData->maPixSize.Width() )
mpData->maPixSize.Width() = pWindow->GetSettings().GetStyleSettings().GetCursorSize();
- // Ausgabeflaeche berechnen und ausgeben
+ // calculate output area and display
ImplCursorInvert( mpData );
mpData->mbCurVisible = true;
}
@@ -172,8 +171,8 @@ void Cursor::ImplDoShow( bool bDrawDirect, bool bRestore )
pWindow = mpWindow;
else
{
- // Gibt es ein aktives Fenster und ist der Cursor in dieses Fenster
- // selektiert, dann zeige den Cursor an
+ // show the cursor, if there is an active window and the cursor
+ // has been selected in this window
pWindow = Application::GetFocusWindow();
if ( !pWindow || (pWindow->mpWindowImpl->mpCursor != this) || pWindow->mpWindowImpl->mbInPaint
|| !pWindow->mpWindowImpl->mpFrameData->mbHasFocus )