[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src palm.cpp,1.35,1.36
Chris Apers
chrilith at users.sourceforge.net
Tue May 25 07:43:02 CEST 2004
Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14607
Modified Files:
palm.cpp
Log Message:
Added battery handler and new OSystsem functions support, some parts were moved to new source files
Index: palm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/palm.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- palm.cpp 21 May 2004 20:43:06 -0000 1.35
+++ palm.cpp 25 May 2004 14:42:13 -0000 1.36
@@ -20,719 +20,20 @@
*
*/
#include "stdafx.h"
+#include "palm.h"
-#include "backends/intern.h"
#include "scumm.h"
#include "common/scaler.h"
-#include "common/config-manager.h"
-
-#include "shared.h"
[...1896 lines suppressed...]
}
- return color;
+ // sound
+ memset(&_sound,0,sizeof(SoundDataType));
+
+ // init
+ _vibrate = gVars->vibrator;
}
-void OSystem_PALMOS::ColorToRGB(byte color, uint8 &r, uint8 &g, uint8 &b) {
- r = _currentPalette[color].r;
- g = _currentPalette[color].g;
- b = _currentPalette[color].b;
+void ClearScreen() {
+ RGBColorType rgb = {0, 0,0,0};
+ RectangleType r = {0, 0, gVars->screenFullWidth, gVars->screenFullHeight};
+ WinSetForeColor(WinRGBToIndex(&rgb));
+ WinDrawRectangle(&r,0);
}
More information about the Scummvm-git-logs
mailing list