mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 00:40:56 +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_)
|
static int sortmodes(const void *a_, const void *b_)
|
||||||
{
|
{
|
||||||
int32_t x;
|
|
||||||
|
|
||||||
const struct validmode_t *a = (const struct validmode_t *)a_;
|
auto a = (const struct validmode_t *)a_;
|
||||||
const struct validmode_t *b = (const struct validmode_t *)b_;
|
auto b = (const struct validmode_t *)b_;
|
||||||
|
|
||||||
|
int x;
|
||||||
|
|
||||||
if ((x = a->fs - b->fs) != 0) return x;
|
if ((x = a->fs - b->fs) != 0) return x;
|
||||||
if ((x = a->bpp - b->bpp) != 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_KEYDOWN:
|
||||||
case SDL_KEYUP:
|
case SDL_KEYUP:
|
||||||
{
|
{
|
||||||
const SDL_Scancode sc = ev.key.keysym.scancode;
|
auto const &sc = ev.key.keysym.scancode;
|
||||||
code = keytranslation[sc];
|
code = keytranslation[sc];
|
||||||
|
|
||||||
// Modifiers that have to be held down to be effective
|
// 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 = OSD_HandleScanCode(code, (ev.key.type == SDL_KEYDOWN))) <= 0)
|
||||||
{
|
{
|
||||||
if (j == -1) // osdkey
|
if (j == -1) // osdkey
|
||||||
|
{
|
||||||
for (j = 0; j < NUMKEYS; ++j)
|
for (j = 0; j < NUMKEYS; ++j)
|
||||||
|
{
|
||||||
if (keyGetState(j))
|
if (keyGetState(j))
|
||||||
{
|
{
|
||||||
keySetState(j, 0);
|
keySetState(j, 0);
|
||||||
if (keypresscallback)
|
if (keypresscallback)
|
||||||
keypresscallback(j, 0);
|
keypresscallback(j, 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue