forked from rosebudai/OpenRCT2-Web
Fix cross hatching graphical glitch.
Forgot to Xor the value before clearing it. Fixes #1177
This commit is contained in:
1 parent
2765f15584
commit
44d4ff4d03
2 files changed
+4
-5
No files matched your search
+4
-4
@@ -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++;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user