1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Do not bother backing up SPR_TEMP

This commit is contained in:
Ted John
2017-11-03 22:29:44 +00:00
parent 446f57e43b
commit 498857a95d
4 changed files with 0 additions and 14 deletions

View File

@@ -467,14 +467,12 @@ static void window_track_place_paint(rct_window *w, rct_drawpixelinfo *dpi)
// Draw mini tile preview
rct_drawpixelinfo clippedDpi;
if (clip_drawpixelinfo(&clippedDpi, dpi, w->x + 4, w->y + 18, 168, 78)) {
auto g1backup = gfx_get_g1_element(SPR_TEMP);
rct_g1_element g1temp = { 0 };
g1temp.offset = _window_track_place_mini_preview;
g1temp.width = TRACK_MINI_PREVIEW_WIDTH;
g1temp.height = TRACK_MINI_PREVIEW_HEIGHT;
gfx_set_g1_element(SPR_TEMP, &g1temp);
gfx_draw_sprite(&clippedDpi, SPRITE_ID_PALETTE_COLOUR_1(NOT_TRANSLUCENT(w->colours[0])), 0, 0, 0);
gfx_set_g1_element(SPR_TEMP, g1backup);
}
// Price