|
|
Author: ianmacarthur
Date: 2011-08-22 06:59:12 -0700 (Mon, 22 Aug 2011)
New Revision: 8990
Log:
Minor correction to types in Fl_get_key_win32.cxx for signed/unsigned types.
This now compiles OK.
(Though win32 builds still broken elsewhere...)
Modified:
branches/branch-3.0/src/Fl_get_key_win32.cxx
Modified: branches/branch-3.0/src/Fl_get_key_win32.cxx
===================================================================
--- branches/branch-3.0/src/Fl_get_key_win32.cxx 2011-08-22 10:39:40 UTC (rev 8989)
+++ branches/branch-3.0/src/Fl_get_key_win32.cxx 2011-08-22 13:59:12 UTC (rev 8990)
@@ -107,7 +107,7 @@
{VK_DELETE, fltk3::DeleteKey}
};
-static int fltk2ms(int fltk) {
+static int fltk2ms(unsigned int fltk) {
if (fltk >= '0' && fltk <= '9') return fltk;
if (fltk >= 'A' && fltk <= 'Z') return fltk;
if (fltk >= 'a' && fltk <= 'z') return fltk-('a'-'A');
@@ -127,7 +127,7 @@
return GetKeyState(fltk2ms(k))&~1;
}
-int fltk3::get_key(int k) {
+int fltk3::get_key(unsigned int k) {
uchar foo[256];
GetKeyboardState(foo);
return foo[fltk2ms(k)]&~1;
[ Direct Link to Message ] | |
|
| |