Skip to content

Commit

Permalink
fix windows error
Browse files Browse the repository at this point in the history
  • Loading branch information
coco875 committed Dec 29, 2024
1 parent ae57ecb commit 8ae5704
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/graphic/Fast3D/gfx_pc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,7 @@ static void gfx_dp_load_tlut(uint8_t tile, uint32_t high_index) {
uint8_t r = SCALE_5_8(col.r);
uint8_t g = SCALE_5_8(col.g);
uint8_t b = SCALE_5_8(col.b);
g_rdp.pallettes_ci[i] = { r, g, b, a ? 255 : 0 };
g_rdp.pallettes_ci[i] = { r, g, b, a ? (uint8_t)255 : (uint8_t)0 };
}
} else {
for (uint16_t i = 0; i < 128; i++) {
Expand All @@ -2017,7 +2017,7 @@ static void gfx_dp_load_tlut(uint8_t tile, uint32_t high_index) {
uint8_t r = SCALE_5_8(col.r);
uint8_t g = SCALE_5_8(col.g);
uint8_t b = SCALE_5_8(col.b);
g_rdp.pallettes_ci[i] = { r, g, b, a ? 255 : 0 };
g_rdp.pallettes_ci[i] = { r, g, b, a ? (uint8_t)255 : (uint8_t)0 };
}
}
} else {
Expand All @@ -2029,7 +2029,7 @@ static void gfx_dp_load_tlut(uint8_t tile, uint32_t high_index) {
uint8_t r = SCALE_5_8(col.r);
uint8_t g = SCALE_5_8(col.g);
uint8_t b = SCALE_5_8(col.b);
g_rdp.pallettes_ci[i + 128] = { r, g, b, a ? 255 : 0 };
g_rdp.pallettes_ci[i + 128] = { r, g, b, a ? (uint8_t)255 : (uint8_t)0 };
}
}
}
Expand Down

0 comments on commit 8ae5704

Please sign in to comment.