[Scummvm-cvs-logs] CVS: scummvm/backends/wince pocketpc.cpp,1.18,1.19
Nicolas Bacca
arisme at users.sourceforge.net
Tue Jan 21 14:37:02 CET 2003
Update of /cvsroot/scummvm/scummvm/backends/wince
In directory sc8-pr-cvs1:/tmp/cvs-serv24495
Modified Files:
pocketpc.cpp
Log Message:
deDOS
Index: pocketpc.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/wince/pocketpc.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- pocketpc.cpp 21 Jan 2003 18:42:54 -0000 1.18
+++ pocketpc.cpp 21 Jan 2003 22:36:06 -0000 1.19
@@ -585,7 +585,7 @@
void draw_mouse();
- void undraw_mouse();
+ void undraw_mouse();
void warp_mouse(int x, int y);
void load_gfx_mode();
@@ -698,7 +698,7 @@
MessageBox(NULL, TEXT(Function), TEXT("Error importing DLL function"), MB_OK); \
exit(1); \
}
-
+
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd)
{
@@ -712,13 +712,13 @@
HMODULE aygshell_handle;
//HMODULE SDLAudio_handle;
- HMODULE GAPI_handle;
+ HMODULE GAPI_handle;
hide_toolbar = false;
- noGAPI = 0;
+ noGAPI = 0;
g_config = new Config("scummvm.ini", "scummvm");
- g_config->set_writing(true);
+ g_config->set_writing(true);
// See if we're running on a Windows CE version supporting aygshell
aygshell_handle = LoadLibrary(TEXT("aygshell.dll"));
@@ -802,17 +802,17 @@
dynamicGXOpenDisplay = gameXGXOpenDisplay;
dynamicGXEndDraw = gameXGXEndDraw;
dynamicGXBeginDraw = gameXGXBeginDraw;
-
- FILE *test;
-
- test = fopen("NoGameX", "r");
- if (test) {
- noGAPI = 1;
- fclose(test);
- }
- else
- if (g_config->getBool("NoGameX", false, "wince"))
- noGAPI = 1;
+
+ FILE *test;
+
+ test = fopen("NoGameX", "r");
+ if (test) {
+ noGAPI = 1;
+ fclose(test);
+ }
+ else
+ if (g_config->getBool("NoGameX", false, "wince"))
+ noGAPI = 1;
#endif
@@ -862,10 +862,10 @@
ShowWindow(hWnd_Window, SW_SHOW);
UpdateWindow(hWnd_Window);
-
- GraphicsOn(hWnd_Window, gfx_mode_switch); // open GAPI in Portrait mode
- GAPIKeysInit();
- Cls();
+
+ GraphicsOn(hWnd_Window, gfx_mode_switch); // open GAPI in Portrait mode
+ GAPIKeysInit();
+ Cls();
// Hide taskbar
SetWindowPos(hWnd_Window, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
@@ -891,23 +891,23 @@
return 0;
}
-void runGame(char *game_name) {
- int argc = 4;
+void runGame(char *game_name) {
+ int argc = 4;
char* argv[4];
char argdir[MAX_PATH];
- char music[100];
- bool no_music;
+ char music[100];
+ bool no_music;
select_game = false;
argv[0] = NULL;
sprintf(argdir, "-p%s", _directory);
- argv[1] = argdir;
- no_music = g_config->getBool("NoMusic", false, "wince");
- sprintf(music, "-e%s", (no_music ? "null" : "adlib"));
- argv[2] = music;
- argv[3] = game_name;
-
+ argv[1] = argdir;
+ no_music = g_config->getBool("NoMusic", false, "wince");
+ sprintf(music, "-e%s", (no_music ? "null" : "adlib"));
+ argv[2] = music;
+ argv[3] = game_name;
+
if (!argv[3])
return;
@@ -1806,9 +1806,9 @@
}
}
-
-void OSystem_WINCE3::warp_mouse(int x, int y) {
-}
+
+void OSystem_WINCE3::warp_mouse(int x, int y) {
+}
void OSystem_WINCE3::set_mouse_pos(int x, int y) {
if (x != _ms_cur.x || y != _ms_cur.y) {
More information about the Scummvm-git-logs
mailing list