[Scummvm-cvs-logs] CVS: scummvm/backends/morphos morphos.cpp,1.40,1.41 morphos.h,1.27,1.28
Max Horn
fingolfin at users.sourceforge.net
Fri Sep 3 18:34:04 CEST 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/null null.cpp,1.17,1.18
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm actor.cpp,1.277,1.278 akos.cpp,1.155,1.156 intern.h,2.213,2.214 script_v6.cpp,1.394,1.395 script_v6he.cpp,2.107,2.108 script_v72he.cpp,2.42,2.43 script_v7he.cpp,2.61,2.62 scumm.cpp,1.164,1.165 scumm.h,1.465,1.466
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/backends/morphos
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10785/backends/morphos
Modified Files:
morphos.cpp morphos.h
Log Message:
Got rid of OSystem::move_screen
Index: morphos.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/morphos/morphos.cpp,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- morphos.cpp 6 May 2004 09:20:20 -0000 1.40
+++ morphos.cpp 4 Sep 2004 01:31:00 -0000 1.41
@@ -1103,48 +1103,6 @@
}
}
-void OSystem_MorphOS::move_screen(int dx, int dy, int height) {
-
- if ((dx == 0) && (dy == 0))
- return;
-
- UpdateRects = 26;
- Rectangle update_rect = { 0, 0, ScummBufferWidth, ScummBufferHeight };
- OrRectRegion(NewUpdateRegion, &update_rect);
- ScreenChanged = true;
-
- UndrawMouse();
-
- // vertical movement
- if (dy > 0) {
- // move down
- // copy from bottom to top
- for (int y = height - 1; y >= dy; y--)
- copyRectToScreen((byte *)ScummBuffer + ScummBufferWidth * (y - dy), ScummBufferWidth, 0, y, ScummBufferWidth, 1);
- } else if (dy < 0) {
- // move up
- // copy from top to bottom
- dy = -dy;
- for (int y = dy; y < height; y++)
- copyRectToScreen((byte *)ScummBuffer + ScummBufferWidth * y, ScummBufferWidth, 0, y - dy, ScummBufferWidth, 1);
- }
-
- // horizontal movement
- if (dx > 0) {
- // move right
- // copy from right to left
- for (int x = ScummBufferWidth - 1; x >= dx; x--)
- copyRectToScreen((byte *)ScummBuffer + x - dx, ScummBufferWidth, x, 0, 1, height);
- } else if (dx < 0) {
- // move left
- // copy from left to right
- dx = -dx;
- for (int x = dx; x < ScummBufferWidth; x++)
- copyRectToScreen((byte *)ScummBuffer + x, ScummBufferWidth, x, 0, 1, height);
- }
-}
-
-
bool OSystem_MorphOS::AddUpdateRect(WORD x, WORD y, WORD w, WORD h)
{
if (UpdateRects > 25)
Index: morphos.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/morphos/morphos.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- morphos.h 6 May 2004 09:20:20 -0000 1.27
+++ morphos.h 4 Sep 2004 01:31:00 -0000 1.28
@@ -52,7 +52,6 @@
// Draw a bitmap to screen.
// The screen will not be updated to reflect the new bitmap
virtual 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
virtual void updateScreen();
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/null null.cpp,1.17,1.18
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm actor.cpp,1.277,1.278 akos.cpp,1.155,1.156 intern.h,2.213,2.214 script_v6.cpp,1.394,1.395 script_v6he.cpp,2.107,2.108 script_v72he.cpp,2.42,2.43 script_v7he.cpp,2.61,2.62 scumm.cpp,1.164,1.165 scumm.h,1.465,1.466
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list