diff options
author | Ludvig Strigeus | 2001-10-10 10:02:33 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2001-10-10 10:02:33 +0000 |
commit | 061f9c1289fac34d45887a8cd6ffd627446dcd7f (patch) | |
tree | b389a05921a175b1499a0a6664e56095bc92a3c8 /windows.cpp | |
parent | 1fb297d3f62a3334999b1ccf408f27deacbada8d (diff) | |
download | scummvm-rg350-061f9c1289fac34d45887a8cd6ffd627446dcd7f.tar.gz scummvm-rg350-061f9c1289fac34d45887a8cd6ffd627446dcd7f.tar.bz2 scummvm-rg350-061f9c1289fac34d45887a8cd6ffd627446dcd7f.zip |
alternative mouse cursor
basic save&load
svn-id: r3416
Diffstat (limited to 'windows.cpp')
-rw-r--r-- | windows.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/windows.cpp b/windows.cpp index 1a961ba1c0..5daf10916d 100644 --- a/windows.cpp +++ b/windows.cpp @@ -17,6 +17,10 @@ * * Change Log: * $Log$ + * Revision 1.3 2001/10/10 10:02:33 strigeus + * alternative mouse cursor + * basic save&load + * * Revision 1.2 2001/10/09 19:02:28 strigeus * command line parameter support * @@ -135,6 +139,17 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l case WM_CHAR: wm->_scumm->_keyPressed = wParam; break; + + case WM_KEYDOWN: + if (wParam>='0' && wParam<='9') { + wm->_scumm->_saveLoadSlot = wParam - '0'; + if (GetAsyncKeyState(VK_SHIFT)<0) + wm->_scumm->_saveLoadFlag = 1; + else if (GetAsyncKeyState(VK_CONTROL)<0) + wm->_scumm->_saveLoadFlag = 2; + } + break; + case WM_MOUSEMOVE: wm->_scumm->mouse.x = ((int16*)&lParam)[0]; wm->_scumm->mouse.y = ((int16*)&lParam)[1]; @@ -196,7 +211,6 @@ void copy_320x200_to_640x400(byte *s, byte *d) { } } - bool WndMan::allocateDIB(int w, int h) { struct { BITMAPINFOHEADER bih; @@ -783,11 +797,13 @@ void initGraphics(Scumm *s) { #undef main int main(int argc, char* argv[]) { scumm._videoMode = 0x13; + scumm._exe_name = "monkey2"; wm->init(); wm->_vgabuf = (byte*)calloc(320,200); wm->_scumm = &scumm; + scumm.scummMain(argc, argv); return 0; |