X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fpc%2Fminiglut.c;h=e4a51507d4ea44a4e842de3b58766c1cca0c6ea9;hb=f73ffe705cb41dcf9cd5adfd1ec2ee5a399a45a1;hp=1efbea369abba40cbb6483bc0db6c3b6ffa41ec5;hpb=8c70193a723f9dfbea3655f336d10eff644d0f6f;p=andemo diff --git a/src/pc/miniglut.c b/src/pc/miniglut.c index 1efbea3..e4a5150 100644 --- a/src/pc/miniglut.c +++ b/src/pc/miniglut.c @@ -1,6 +1,6 @@ /* MiniGLUT - minimal GLUT subset without dependencies -Copyright (C) 2020 John Tsiombikas +Copyright (C) 2020-2022 John Tsiombikas This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,7 +15,6 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include #if defined(__unix__) #include @@ -50,7 +49,7 @@ static int have_netwm_fullscr(void); #include #define BUILD_WIN32 -static HRESULT CALLBACK handle_message(HWND win, unsigned int msg, WPARAM wparam, LPARAM lparam); +static LRESULT CALLBACK handle_message(HWND win, unsigned int msg, WPARAM wparam, LPARAM lparam); static HINSTANCE hinst; static HWND win; @@ -1532,7 +1531,7 @@ static void create_window(const char *title) reshape_pending = 1; } -static HRESULT CALLBACK handle_message(HWND win, unsigned int msg, WPARAM wparam, LPARAM lparam) +static LRESULT CALLBACK handle_message(HWND win, unsigned int msg, WPARAM wparam, LPARAM lparam) { static int mouse_x, mouse_y; int x, y, key;