Changeset 18494 in vbox for trunk/src/VBox/Frontends/VBoxSDL
- Timestamp:
- Mar 29, 2009 2:00:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r18274 r18494 1332 1332 } 1333 1333 gHostKeyDisabledCombinations = argv[curArg]; 1334 unsigned i, cStr= strlen(gHostKeyDisabledCombinations);1335 for ( i=0; i<cStr; i++)1334 size_t cch = strlen(gHostKeyDisabledCombinations); 1335 for (size_t i = 0; i < cch; i++) 1336 1336 { 1337 1337 if (!strchr("fhnpqrs", gHostKeyDisabledCombinations[i])) 1338 1338 { 1339 1339 RTPrintf("Error: <hostkey> + '%c' is not a valid combination\n", 1340 gHostKeyDisabledCombinations[i]);1340 gHostKeyDisabledCombinations[i]); 1341 1341 rc = E_FAIL; 1342 i = cStr;1343 1342 break; 1344 1343 } … … 2586 2585 */ 2587 2586 ASMAtomicDecS32(&g_cNotifyUpdateEventsPending); 2588 #define DECODEX(event) ( (intptr_t)(event).user.data1 >> 16)2589 #define DECODEY(event) ( (intptr_t)(event).user.data1 & 0xFFFF)2590 #define DECODEW(event) ( (intptr_t)(event).user.data2 >> 16)2591 #define DECODEH(event) ( (intptr_t)(event).user.data2 & 0xFFFF)2587 #define DECODEX(event) (int)((intptr_t)(event).user.data1 >> 16) 2588 #define DECODEY(event) (int)((intptr_t)(event).user.data1 & 0xFFFF) 2589 #define DECODEW(event) (int)((intptr_t)(event).user.data2 >> 16) 2590 #define DECODEH(event) (int)((intptr_t)(event).user.data2 & 0xFFFF) 2592 2591 int x = DECODEX(event); 2593 2592 int y = DECODEY(event);
Note:
See TracChangeset
for help on using the changeset viewer.