mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
The most minor of minor changes
git-svn-id: https://svn.eduke32.com/eduke32@7164 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
0f0974874b
commit
6d4b0f7731
1 changed files with 9 additions and 4 deletions
|
@ -1132,10 +1132,11 @@ void(*timerSetCallback(void(*callback)(void)))(void)
|
|||
//
|
||||
static int sortmodes(const void *a_, const void *b_)
|
||||
{
|
||||
int32_t x;
|
||||
|
||||
const struct validmode_t *a = (const struct validmode_t *)a_;
|
||||
const struct validmode_t *b = (const struct validmode_t *)b_;
|
||||
auto a = (const struct validmode_t *)a_;
|
||||
auto b = (const struct validmode_t *)b_;
|
||||
|
||||
int x;
|
||||
|
||||
if ((x = a->fs - b->fs) != 0) return x;
|
||||
if ((x = a->bpp - b->bpp) != 0) return x;
|
||||
|
@ -2110,7 +2111,7 @@ int32_t handleevents_pollsdl(void)
|
|||
case SDL_KEYDOWN:
|
||||
case SDL_KEYUP:
|
||||
{
|
||||
const SDL_Scancode sc = ev.key.keysym.scancode;
|
||||
auto const &sc = ev.key.keysym.scancode;
|
||||
code = keytranslation[sc];
|
||||
|
||||
// Modifiers that have to be held down to be effective
|
||||
|
@ -2227,13 +2228,17 @@ int32_t handleevents_pollsdl(void)
|
|||
if ((j = OSD_HandleScanCode(code, (ev.key.type == SDL_KEYDOWN))) <= 0)
|
||||
{
|
||||
if (j == -1) // osdkey
|
||||
{
|
||||
for (j = 0; j < NUMKEYS; ++j)
|
||||
{
|
||||
if (keyGetState(j))
|
||||
{
|
||||
keySetState(j, 0);
|
||||
if (keypresscallback)
|
||||
keypresscallback(j, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue