- the fourth.
This commit is contained in:
parent
6dee9ff566
commit
8ab562ef13
107 changed files with 1041 additions and 1041 deletions
|
|
@ -320,7 +320,7 @@ private:
|
|||
PalEntry m_palette[256];
|
||||
bool m_needPaletteUpdate;
|
||||
|
||||
BYTE m_gammaTable[3][256];
|
||||
uint8_t m_gammaTable[3][256];
|
||||
float m_gamma;
|
||||
bool m_needGammaUpdate;
|
||||
|
||||
|
|
@ -1498,7 +1498,7 @@ bool I_SetCursor(FTexture* cursorpic)
|
|||
|
||||
// Load bitmap data to representation
|
||||
|
||||
BYTE* buffer = [bitmapImageRep bitmapData];
|
||||
uint8_t* buffer = [bitmapImageRep bitmapData];
|
||||
memset(buffer, 0, imagePitch * imageHeight);
|
||||
|
||||
FBitmap bitmap(buffer, imagePitch, imageWidth, imageHeight);
|
||||
|
|
@ -1510,7 +1510,7 @@ bool I_SetCursor(FTexture* cursorpic)
|
|||
{
|
||||
const size_t offset = i * 4;
|
||||
|
||||
const BYTE temp = buffer[offset ];
|
||||
const uint8_t temp = buffer[offset ];
|
||||
buffer[offset ] = buffer[offset + 2];
|
||||
buffer[offset + 2] = temp;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,9 +110,9 @@ static const SDL_Scancode DIKToKeyScan[256] =
|
|||
SDL_SCANCODE_UNKNOWN, SDL_SCANCODE_UNKNOWN, SDL_SCANCODE_UNKNOWN, SDL_SCANCODE_UNKNOWN, SDL_SCANCODE_UNKNOWN, SDL_SCANCODE_UNKNOWN, SDL_SCANCODE_UNKNOWN, SDL_SCANCODE_UNKNOWN
|
||||
};
|
||||
|
||||
static TMap<SDL_Keycode, BYTE> InitKeySymMap ()
|
||||
static TMap<SDL_Keycode, uint8_t> InitKeySymMap ()
|
||||
{
|
||||
TMap<SDL_Keycode, BYTE> KeySymToDIK;
|
||||
TMap<SDL_Keycode, uint8_t> KeySymToDIK;
|
||||
|
||||
for (int i = 0; i < 256; ++i)
|
||||
{
|
||||
|
|
@ -127,11 +127,11 @@ static TMap<SDL_Keycode, BYTE> InitKeySymMap ()
|
|||
|
||||
return KeySymToDIK;
|
||||
}
|
||||
static const TMap<SDL_Keycode, BYTE> KeySymToDIK(InitKeySymMap());
|
||||
static const TMap<SDL_Keycode, uint8_t> KeySymToDIK(InitKeySymMap());
|
||||
|
||||
static TMap<SDL_Scancode, BYTE> InitKeyScanMap ()
|
||||
static TMap<SDL_Scancode, uint8_t> InitKeyScanMap ()
|
||||
{
|
||||
TMap<SDL_Scancode, BYTE> KeyScanToDIK;
|
||||
TMap<SDL_Scancode, uint8_t> KeyScanToDIK;
|
||||
|
||||
for (int i = 0; i < 256; ++i)
|
||||
{
|
||||
|
|
@ -140,7 +140,7 @@ static TMap<SDL_Scancode, BYTE> InitKeyScanMap ()
|
|||
|
||||
return KeyScanToDIK;
|
||||
}
|
||||
static const TMap<SDL_Scancode, BYTE> KeyScanToDIK(InitKeyScanMap());
|
||||
static const TMap<SDL_Scancode, uint8_t> KeyScanToDIK(InitKeyScanMap());
|
||||
|
||||
static void I_CheckGUICapture ()
|
||||
{
|
||||
|
|
@ -377,9 +377,9 @@ void MessagePump (const SDL_Event &sev)
|
|||
// If that fails, then we'll do a lookup against the scan code,
|
||||
// which may not return the right key, but at least the key should
|
||||
// work in the game.
|
||||
if (const BYTE *dik = KeySymToDIK.CheckKey (sev.key.keysym.sym))
|
||||
if (const uint8_t *dik = KeySymToDIK.CheckKey (sev.key.keysym.sym))
|
||||
event.data1 = *dik;
|
||||
else if (const BYTE *dik = KeyScanToDIK.CheckKey (sev.key.keysym.scancode))
|
||||
else if (const uint8_t *dik = KeyScanToDIK.CheckKey (sev.key.keysym.scancode))
|
||||
event.data1 = *dik;
|
||||
|
||||
if (event.data1)
|
||||
|
|
|
|||
|
|
@ -511,7 +511,7 @@ void SDLFB::Update ()
|
|||
{
|
||||
for (int y = 0; y < Height; ++y)
|
||||
{
|
||||
memcpy ((BYTE *)pixels+y*pitch, MemBuffer+y*Pitch, Width);
|
||||
memcpy ((uint8_t *)pixels+y*pitch, MemBuffer+y*Pitch, Width);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue