From 96d6cb357f7dbe59fdfeba73808d78fc0c0ea435 Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Thu, 22 Mar 2018 00:05:17 +0000 Subject: Update rawdraw --- redist/CNFGWinDriver.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'redist/CNFGWinDriver.c') 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 -- cgit v1.2.3