diff options
author | Charles Lohr <lohr85@gmail.com> | 2018-03-22 00:05:17 +0000 |
---|---|---|
committer | Charles Lohr <lohr85@gmail.com> | 2018-03-22 00:05:17 +0000 |
commit | 96d6cb357f7dbe59fdfeba73808d78fc0c0ea435 (patch) | |
tree | 39c9965dd2a4d1ee330d7dac530374d9437641a1 /redist/CNFGWinDriver.c | |
parent | d2468fcc0bd63e163a7a0564fa37b7880e2209df (diff) | |
download | libsurvive-96d6cb357f7dbe59fdfeba73808d78fc0c0ea435.tar.gz libsurvive-96d6cb357f7dbe59fdfeba73808d78fc0c0ea435.tar.bz2 |
Update rawdraw
Diffstat (limited to 'redist/CNFGWinDriver.c')
-rw-r--r-- | redist/CNFGWinDriver.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/redist/CNFGWinDriver.c b/redist/CNFGWinDriver.c index 9d1be6a..4d34e19 100644 --- a/redist/CNFGWinDriver.c +++ b/redist/CNFGWinDriver.c @@ -106,7 +106,7 @@ LRESULT CALLBACK MyWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) } //This was from the article, too... well, mostly. -void CNFGSetup( const char * name_of_window, int width, int height ) +int CNFGSetup( const char * name_of_window, int width, int height ) { static LPSTR szClassName = "MyClass"; RECT client, window; @@ -208,10 +208,12 @@ void CNFGSetup( const char * name_of_window, int width, int height ) MoveWindow( lsHWND, window.left, window.top, bufferx + wd, buffery + hd, 1 ); InternalHandleResize(); + return 0; } void CNFGHandleInput() { + int ldown = 0; MSG msg; while( PeekMessage( &msg, lsHWND, 0, 0xFFFF, 1 ) ) @@ -238,6 +240,7 @@ void CNFGHandleInput() break; } } + return 0; } #ifndef CNFGOGL |