remove nonstandard type aliases
This commit is contained in:
@@ -18,7 +18,7 @@ void TitleScreen::Create() {
|
||||
}
|
||||
|
||||
void TitleScreen::BuildTileset() {
|
||||
uchar staticgfx[16] = {0};
|
||||
uint8_t staticgfx[16] = {0};
|
||||
|
||||
// Main Blocksets
|
||||
|
||||
@@ -37,13 +37,13 @@ void TitleScreen::BuildTileset() {
|
||||
staticgfx[15] = 112;
|
||||
|
||||
// Loaded gfx for the current screen (empty at this point)
|
||||
uchar* currentmapgfx8Data = tiles8Bitmap.mutable_data().data();
|
||||
uint8_t* currentmapgfx8Data = tiles8Bitmap.mutable_data().data();
|
||||
|
||||
// All gfx of the game pack of 2048 bytes (4bpp)
|
||||
uchar* allgfxData = nullptr;
|
||||
uint8_t* allgfxData = nullptr;
|
||||
for (int i = 0; i < 16; i++) {
|
||||
for (int j = 0; j < 2048; j++) {
|
||||
uchar mapByte = allgfxData[j + (staticgfx[i] * 2048)];
|
||||
uint8_t mapByte = allgfxData[j + (staticgfx[i] * 2048)];
|
||||
switch (i) {
|
||||
case 0:
|
||||
case 3:
|
||||
@@ -83,7 +83,7 @@ void TitleScreen::LoadTitleScreen() {
|
||||
int jj = 0;
|
||||
int posB = pos;
|
||||
while (j < (length / 2) + 1) {
|
||||
ushort tiledata = (ushort)pos;
|
||||
uint16_t tiledata = (uint16_t)pos;
|
||||
if (dest_addr >= 0x1000) {
|
||||
// destAddr -= 0x1000;
|
||||
if (dest_addr < 0x2000) {
|
||||
|
||||
@@ -43,12 +43,12 @@ class TitleScreen {
|
||||
int addressesgfx[7] = {0x53ee0, 0x53f04, 0x53ef2, 0x53f16,
|
||||
0x53f28, 0x53f3a, 0x53f4c};
|
||||
|
||||
ushort bossRoom = 0x000F;
|
||||
ushort selected_tile = 0;
|
||||
ushort tilesBG1Buffer[0x1000]; // 0x1000
|
||||
ushort tilesBG2Buffer[0x1000]; // 0x1000
|
||||
uchar mapdata; // 64 * 64
|
||||
uchar dwmapdata; // 64 * 64
|
||||
uint16_t bossRoom = 0x000F;
|
||||
uint16_t selected_tile = 0;
|
||||
uint16_t tilesBG1Buffer[0x1000]; // 0x1000
|
||||
uint16_t tilesBG2Buffer[0x1000]; // 0x1000
|
||||
uint8_t mapdata; // 64 * 64
|
||||
uint8_t dwmapdata; // 64 * 64
|
||||
|
||||
bool mDown = false;
|
||||
bool swordSelected = false;
|
||||
|
||||
Reference in New Issue
Block a user