diff options
| -rw-r--r-- | sys/src/games/doom/doomdef.h | 4 | ||||
| -rw-r--r-- | sys/src/games/doom/i_video.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/src/games/doom/doomdef.h b/sys/src/games/doom/doomdef.h index 08378bcda..08e5f7604 100644 --- a/sys/src/games/doom/doomdef.h +++ b/sys/src/games/doom/doomdef.h @@ -248,8 +248,8 @@ typedef enum #define KEY_F8 (0x80+0x42) #define KEY_F9 (0x80+0x43) #define KEY_F10 (0x80+0x44) -#define KEY_F11 (0x80+0x57) -#define KEY_F12 (0x80+0x58) +#define KEY_F11 (0x80+0x45) +#define KEY_F12 (0x80+0x46) #define KEY_BACKSPACE 127 #define KEY_PAUSE 0xff diff --git a/sys/src/games/doom/i_video.c b/sys/src/games/doom/i_video.c index fd6c0a59b..73ab0b2d1 100644 --- a/sys/src/games/doom/i_video.c +++ b/sys/src/games/doom/i_video.c @@ -73,7 +73,11 @@ void I_ShutdownGraphics(void) void I_SetPalette(byte *palette) { - memcpy(cmap, palette, 3*256); + uchar *c; + + c = cmap; + while(c < cmap+3*256) + *c++ = gammatable[usegamma][*palette++]; } void I_UpdateNoBlit(void) |
