diff options
Diffstat (limited to 'backends/PalmOS')
-rw-r--r-- | backends/PalmOS/Src/palm.h | 4 | ||||
-rw-r--r-- | backends/PalmOS/Src/palmgfx.cpp | 59 |
2 files changed, 0 insertions, 63 deletions
diff --git a/backends/PalmOS/Src/palm.h b/backends/PalmOS/Src/palm.h index 5401f04384..6dbab515f2 100644 --- a/backends/PalmOS/Src/palm.h +++ b/backends/PalmOS/Src/palm.h @@ -74,10 +74,6 @@ public: // The screen will not be updated to reflect the new bitmap void copyRectToScreen(const byte *buf, int pitch, int x, int y, int w, int h); - // Moves the screen content around by the given amount of pixels - // but only the top height pixel rows, the rest stays untouched - void move_screen(int dx, int dy, int height); - // Update the dirty areas of the screen void updateScreen(); diff --git a/backends/PalmOS/Src/palmgfx.cpp b/backends/PalmOS/Src/palmgfx.cpp index 65c3336e47..8f96844cad 100644 --- a/backends/PalmOS/Src/palmgfx.cpp +++ b/backends/PalmOS/Src/palmgfx.cpp @@ -583,65 +583,6 @@ void OSystem_PALMOS::updateScreen() { ((this)->*(_renderer_proc))(); } -void OSystem_PALMOS::move_screen(int dx, int dy, int height) { - // Short circuit check - do we have to do anything anyway? - if ((dx == 0 && dy == 0) || height <= 0) - return; - - // Hide the mouse - if (_mouseDrawn) - undraw_mouse(); - - RectangleType r, dummy; - WinSetDrawWindow(_offScreenH); - RctSetRectangle(&r, ((_offScreenH != _screenH) ? 0 : _screenOffset.x), ((_offScreenH != _screenH) ? 0 : _screenOffset.y), _screenWidth, _screenHeight); - - // vertical movement - if (dy > 0) { - // move down - copy from bottom to top - if (_useHRmode) { - // need to set the draw window - HRWinScrollRectangle(gVars->HRrefNum, &r, winDown, dy, &dummy); - } else { - WinScrollRectangle(&r, winDown, dy, &dummy); - } - } else if (dy < 0) { - // move up - copy from top to bottom - dy = -dy; - if (_useHRmode) { - // need to set the draw window - HRWinScrollRectangle(gVars->HRrefNum, &r, winUp, dy, &dummy); - } else { - WinScrollRectangle(&r, winUp, dy, &dummy); - } - } - - // horizontal movement - if (dx > 0) { - // move right - copy from right to left - if (_useHRmode) { - // need to set the draw window - HRWinScrollRectangle(gVars->HRrefNum, &r, winRight, dx, &dummy); - } else { - WinScrollRectangle(&r, winRight, dx, &dummy); - } - } else if (dx < 0) { - // move left - copy from left to right - dx = -dx; - if (_useHRmode) { - // need to set the draw window - HRWinScrollRectangle(gVars->HRrefNum, &r, winLeft, dx, &dummy); - } else { - WinScrollRectangle(&r, winLeft, dx, &dummy); - } - } - - - WinSetDrawWindow(_screenH); - // Prevent crash on Clie device using successive [HR]WinScrollRectangle ! - SysTaskDelay(1); -} - void OSystem_PALMOS::draw1BitGfx(UInt16 id, Int32 x, Int32 y, Boolean show) { if (OPTIONS_TST(kOptDisableOnScrDisp)) return; |