1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix cross hatching graphical glitch.

Forgot to Xor the value before clearing it. Fixes #1177
This commit is contained in:
Duncan Frost
2015-06-04 17:47:39 +01:00
parent 2765f15584
commit 44d4ff4d03
2 changed files with 4 additions and 5 deletions

View File

@@ -51,9 +51,9 @@ void gfx_fill_rect(rct_drawpixelinfo *dpi, int left, int top, int right, int bot
uint16 cross_pattern = 0;
int start_x = left - dpi->x;
if (start_x < 0){
start_x = 0;
if (start_x < 0){
cross_pattern ^= start_x;
start_x = 0;
}
int end_x = right - dpi->x;
@@ -64,9 +64,9 @@ void gfx_fill_rect(rct_drawpixelinfo *dpi, int left, int top, int right, int bot
int width = end_x - start_x;
int start_y = top - dpi->y;
if (start_y < 0){
start_y = 0;
if (start_y < 0){
cross_pattern ^= start_y;
start_y = 0;
}
int end_y = bottom - dpi->y;
end_y++;

View File

@@ -771,7 +771,6 @@ static void window_cheats_paint()
gfx_draw_string(dpi, (char*)language_get_string(STR_CHEAT_TIP_LARGE_TRAM_GUESTS), 0, w->x + XPL(0) + TXTO, w->y + YPL(2) + TXTO);
gfx_draw_string(dpi, (char*)language_get_string(STR_CHEAT_TIP_NAUSEA), 0, w->x + XPL(0) + TXTO, w->y + YPL(4) + TXTO);
}
}
static void window_cheats_draw_tab_images(rct_drawpixelinfo *dpi, rct_window *w)