Skip to content
Snippets Groups Projects
Commit b8e7590f authored by rswindell's avatar rswindell
Browse files

WIN_EXTKEYS mode flag is required for ulist to return negative values for

extended keys.
parent 0527f536
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2003 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
......@@ -131,7 +131,7 @@
#define MSK_DEL 0x20000000
#define MSK_GET 0x30000000
#define MSK_PUT 0x40000000
/* Dont forget, negative return values are used for extended keys! */
/* Dont forget, negative return values are used for extended keys (if WIN_EXTKEYS used)! */
#else
#define MAX_OPTS 500 /* Maximum number of options per menu call */
#define MSK_ON 0xf000
......
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2003 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
......@@ -1402,7 +1402,9 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
}
break;
default:
return(-2-i);
if(mode&WIN_EXTKEYS)
return(-2-i);
break;
}
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment