diff options
| author | Max Horn | 2004-09-04 01:31:04 +0000 |
|---|---|---|
| committer | Max Horn | 2004-09-04 01:31:04 +0000 |
| commit | 4bd05071e511c077811040c7c746d1c5f8e8c3f8 (patch) | |
| tree | 15ddd6e0ab7b7474668ea07bca628ddbd4efa8a4 /backends/x11 | |
| parent | b086ee7f67b7de4d218ff1e4862271d9e921ba9c (diff) | |
| download | scummvm-rg350-4bd05071e511c077811040c7c746d1c5f8e8c3f8.tar.gz scummvm-rg350-4bd05071e511c077811040c7c746d1c5f8e8c3f8.tar.bz2 scummvm-rg350-4bd05071e511c077811040c7c746d1c5f8e8c3f8.zip | |
Got rid of OSystem::move_screen
svn-id: r14882
Diffstat (limited to 'backends/x11')
| -rw-r--r-- | backends/x11/x11.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/backends/x11/x11.cpp b/backends/x11/x11.cpp index d7899a30c3..cbf4e90555 100644 --- a/backends/x11/x11.cpp +++ b/backends/x11/x11.cpp @@ -90,8 +90,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); - void move_screen(int dx, int dy, int height); - // Update the dirty areas of the screen void updateScreen(); @@ -577,43 +575,6 @@ void OSystem_X11::copyRectToScreen(const byte *buf, int pitch, int x, int y, int } } -void OSystem_X11::move_screen(int dx, int dy, int height) { - - if ((dx == 0) && (dy == 0)) - return; - - if (dx == 0) { - // vertical movement - if (dy > 0) { - // move down - // copy from bottom to top - for (int y = height - 1; y >= dy; y--) - copyRectToScreen(local_fb + fb_width * (y - dy), fb_width, 0, y, fb_width, 1); - } else { - // move up - // copy from top to bottom - for (int y = 0; y < height + dx; y++) - copyRectToScreen(local_fb + fb_width * (y - dy), fb_width, 0, y, fb_width, 1); - } - } else if (dy == 0) { - // horizontal movement - if (dx > 0) { - // move right - // copy from right to left - for (int x = fb_width - 1; x >= dx; x--) - copyRectToScreen(local_fb + x - dx, fb_width, x, 0, 1, height); - } else { - // move left - // copy from left to right - for (int x = 0; x < fb_width; x++) - copyRectToScreen(local_fb + x - dx, fb_width, x, 0, 1, height); - } - } else { - // free movement - // not necessary for now - } -} - void OSystem_X11::blit_convert(const dirty_square * d, uint16 *dst, int pitch) { uint8 *ptr_src = local_fb + (fb_width * d->y) + d->x; uint16 *ptr_dst = dst + (fb_width * d->y) + d->x; |
