FLTK logo

[Library] r8990 - branches/branch-3.0/src

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[Library] r8990 - branches/branch-3.0/src fltk-dev Aug 22, 2011  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.