diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 10:55:39 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 10:55:39 +0000 |
commit | e8717a0afa4f261e81e68c4fc004ef3e51ffda27 (patch) | |
tree | a61058b534de64ca2beceac5898dcf6e715e2e60 /vcl | |
parent | 914510a32952083ae6ebfa8fb4caef398bbccc31 (diff) |
INTEGRATION: CWS calcrtl (1.9.166); FILE MERGED
2004/01/13 09:58:52 sab 1.9.166.2: RESYNC: (1.9-1.11); FILE MERGED
2003/11/10 10:23:16 ssa 1.9.166.1: #106948# improved mirroring
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/window2.cxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index d6422f57a585..44dc3e8ad16a 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: window2.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: vg $ $Date: 2004-01-06 14:21:32 $ + * last change: $Author: hr $ $Date: 2004-02-03 11:55:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -131,6 +131,8 @@ DBG_NAMEEX( Window ); #define IMPL_MAXSAVEBACKSIZE (640*480) #define IMPL_MAXALLSAVEBACKSIZE (800*600*2) +//#define USE_NEW_RTL_IMPLEMENTATION + // ======================================================================= struct ImplFocusDelData : public ImplDelData @@ -711,7 +713,12 @@ IMPL_LINK( Window, ImplTrackTimerHdl, Timer*, pTimer ) if( ImplHasMirroredGraphics() && !IsRTLEnabled() ) { // - RTL - re-mirror frame pos at pChild +#ifdef USE_NEW_RTL_IMPLEMENTATION + Window *pRefWindow = (Window*) mpDummy4; + pRefWindow->ImplReMirror( aMousePos ); +#else ImplReMirror( aMousePos ); +#endif } MouseEvent aMEvt( ImplFrameToOutput( aMousePos ), mpFrameData->mnClickCount, 0, @@ -782,8 +789,15 @@ void Window::EndTracking( USHORT nFlags ) { Point aMousePos( mpFrameData->mnLastMouseX, mpFrameData->mnLastMouseY ); if( ImplHasMirroredGraphics() && !IsRTLEnabled() ) + { // - RTL - re-mirror frame pos at pChild +#ifdef USE_NEW_RTL_IMPLEMENTATION + Window *pRefWindow = (Window*) mpDummy4; + pRefWindow->ImplReMirror( aMousePos ); +#else ImplReMirror( aMousePos ); +#endif + } MouseEvent aMEvt( ImplFrameToOutput( aMousePos ), mpFrameData->mnClickCount, 0, |