mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-19 04:08:45 +00:00
A couple of smallish fixes (PR #1029)
. Fix VS2008 build: int8_t is not defined . Fix VC compile warning C4800: forcing int to bool
This commit is contained in:
parent
f7c6ef397c
commit
ad73f3ec37
@ -1765,8 +1765,8 @@ void updateScreenSHR(long cycles6502)
|
||||
uint8_t* pControl = MemGetAuxPtr(0x9D00 + g_nVideoClockVert); // scan-line control byte
|
||||
uint8_t c = pControl[0];
|
||||
|
||||
bool is640Mode = c & 0x80;
|
||||
bool isColorFillMode = c & 0x20;
|
||||
bool is640Mode = !!(c & 0x80);
|
||||
bool isColorFillMode = !!(c & 0x20);
|
||||
UINT paletteSelectCode = c & 0xf;
|
||||
const UINT kColorsPerPalette = 16;
|
||||
const UINT kColorSize = 2;
|
||||
|
@ -11,6 +11,7 @@
|
||||
#if _MSC_VER >= 1600 // <stdint.h> supported from VS2010 (cl.exe v16.00)
|
||||
#include <stdint.h> // cleanup WORD DWORD -> uint16_t uint32_t
|
||||
#else
|
||||
typedef INT8 int8_t;
|
||||
typedef UINT8 uint8_t;
|
||||
typedef UINT16 uint16_t;
|
||||
typedef UINT32 uint32_t;
|
||||
|
Loading…
Reference in New Issue
Block a user