projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
and with 0xFF to indicate to runtime that we want to strip out higher bits - otherwis...
[freeglut]
/
src
/
mswin
/
fg_main_mswin.c
diff --git
a/src/mswin/fg_main_mswin.c
b/src/mswin/fg_main_mswin.c
index
ad80055
..
6100ae1
100644
(file)
--- a/
src/mswin/fg_main_mswin.c
+++ b/
src/mswin/fg_main_mswin.c
@@
-296,7
+296,7
@@
static LRESULT fghWindowProcKeyPress(SFG_Window *window, UINT uMsg, GLboolean ke
wParam=code[ 0 ];
INVOKE_WCB( *window, KeyboardUp,
wParam=code[ 0 ];
INVOKE_WCB( *window, KeyboardUp,
- ( (char)wParam,
+ ( (char)(wParam & 0xFF), /* and with 0xFF to indicate to runtime that we want to strip out higher bits - otherwise we get a runtime error when "Smaller Type Checks" is enabled */
window->State.MouseX, window->State.MouseY )
);
}
window->State.MouseX, window->State.MouseY )
);
}