[Scummvm-cvs-logs] CVS: scummvm/sword2/driver d_draw.cpp,1.40,1.41 rdwin.cpp,1.34,1.35 render.cpp,1.38,1.39
Torbj?rn Andersson
eriktorbjorn at users.sourceforge.net
Sat Nov 8 07:50:27 CET 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/queen cutaway.cpp,1.57,1.58
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sword2 anims.cpp,1.40,1.41 build_display.cpp,1.43,1.44 console.cpp,1.29,1.30 console.h,1.12,1.13 controls.cpp,1.47,1.48 controls.h,1.9,1.10 debug.cpp,1.25,1.26 events.cpp,1.17,1.18 events.h,1.10,1.11 function.cpp,1.36,1.37 icons.cpp,1.22,1.23 layers.cpp,1.19,1.20 logic.cpp,1.28,1.29 logic.h,1.17,1.18 maketext.cpp,1.27,1.28 maketext.h,1.7,1.8 mouse.cpp,1.37,1.38 resman.cpp,1.63,1.64 resman.h,1.13,1.14 router.cpp,1.28,1.29 router.h,1.10,1.11 save_rest.cpp,1.35,1.36 scroll.cpp,1.11,1.12 sound.cpp,1.32,1.33 speech.cpp,1.44,1.45 startup.cpp,1.29,1.30 sword2.cpp,1.77,1.78 sword2.h,1.33,1.34 sync.cpp,1.12,1.13 sync.h,1.7,1.8 tony_gsdk.cpp,1.15,1.16 tony_gsdk.h,1.6,1.7 walker.cpp,1.23,1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/sword2/driver
In directory sc8-pr-cvs1:/tmp/cvs-serv22682/driver
Modified Files:
d_draw.cpp rdwin.cpp render.cpp
Log Message:
Moved more stuff into classes, changed some static allocation to dynamic,
and removed some of the references to global variables.
At this point I believe everything in the main game engine has been moved
into classes - not necessarily the correct ones, but still... However,
there is some stuff in the driver directory that need to be taken care of
as well.
Index: d_draw.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/d_draw.cpp,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- d_draw.cpp 3 Nov 2003 07:47:42 -0000 1.40
+++ d_draw.cpp 8 Nov 2003 15:47:51 -0000 1.41
@@ -143,7 +143,7 @@
memset(g_display->_buffer, 0, g_display->_screenWide * MENUDEEP);
uint8 msg[] = "Cutscene - Press ESC to exit";
- mem *data = fontRenderer.makeTextSprite(msg, 640, 255, g_sword2->_speechFontId);
+ mem *data = fontRenderer->makeTextSprite(msg, 640, 255, g_sword2->_speechFontId);
_frameHeader *frame = (_frameHeader *) data->ad;
_spriteInfo msgSprite;
uint8 *msgSurface;
Index: rdwin.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/rdwin.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- rdwin.cpp 28 Oct 2003 19:51:30 -0000 1.34
+++ rdwin.cpp 8 Nov 2003 15:47:51 -0000 1.35
@@ -60,7 +60,7 @@
LogMouseEvent(RD_RIGHTBUTTONUP);
break;
case OSystem::EVENT_QUIT:
- Close_game();
+ g_sword2->closeGame();
break;
default:
break;
Index: render.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/render.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- render.cpp 28 Oct 2003 19:51:30 -0000 1.38
+++ render.cpp 8 Nov 2003 15:47:51 -0000 1.39
@@ -641,7 +641,7 @@
if (_scrollXTarget == _scrollX && _scrollYTarget == _scrollY) {
// If we have already reached the scroll target sleep for the
// rest of the render cycle.
- sleepUntil(_totalTime);
+ g_sword2->sleepUntil(_totalTime);
_initialTime = SVM_timeGetTime();
_totalTime += MILLISECSPERCYCLE;
return true;
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/queen cutaway.cpp,1.57,1.58
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sword2 anims.cpp,1.40,1.41 build_display.cpp,1.43,1.44 console.cpp,1.29,1.30 console.h,1.12,1.13 controls.cpp,1.47,1.48 controls.h,1.9,1.10 debug.cpp,1.25,1.26 events.cpp,1.17,1.18 events.h,1.10,1.11 function.cpp,1.36,1.37 icons.cpp,1.22,1.23 layers.cpp,1.19,1.20 logic.cpp,1.28,1.29 logic.h,1.17,1.18 maketext.cpp,1.27,1.28 maketext.h,1.7,1.8 mouse.cpp,1.37,1.38 resman.cpp,1.63,1.64 resman.h,1.13,1.14 router.cpp,1.28,1.29 router.h,1.10,1.11 save_rest.cpp,1.35,1.36 scroll.cpp,1.11,1.12 sound.cpp,1.32,1.33 speech.cpp,1.44,1.45 startup.cpp,1.29,1.30 sword2.cpp,1.77,1.78 sword2.h,1.33,1.34 sync.cpp,1.12,1.13 sync.h,1.7,1.8 tony_gsdk.cpp,1.15,1.16 tony_gsdk.h,1.6,1.7 walker.cpp,1.23,1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list