1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Don't clear the screen to black for giant screenshots

When certain viewport flags were set (underground view, hide base land,
hide vetical faces, clip view), the viewport would always be cleared,
including for giant screenshots.
This commit is contained in:
Hielke Morsink
2019-06-16 16:42:21 +02:00
committed by Michael Steenbeek
parent 2044dbcad5
commit 6b7fee86bb
3 changed files with 8 additions and 4 deletions

View File

@@ -845,12 +845,14 @@ static void viewport_fill_column(paint_session* session)
static void viewport_paint_column(paint_session* session)
{
if (session->ViewFlags
& (VIEWPORT_FLAG_HIDE_VERTICAL | VIEWPORT_FLAG_HIDE_BASE | VIEWPORT_FLAG_UNDERGROUND_INSIDE | VIEWPORT_FLAG_CLIP_VIEW))
& (VIEWPORT_FLAG_HIDE_VERTICAL | VIEWPORT_FLAG_HIDE_BASE | VIEWPORT_FLAG_UNDERGROUND_INSIDE
| VIEWPORT_FLAG_CLIP_VIEW)
&& (~session->ViewFlags & VIEWPORT_FLAG_TRANSPARENT_BACKGROUND))
{
uint8_t colour = 10;
uint8_t colour = COLOUR_AQUAMARINE;
if (session->ViewFlags & VIEWPORT_FLAG_INVISIBLE_SPRITES)
{
colour = 0;
colour = COLOUR_BLACK;
}
gfx_clear(&session->DPI, colour);
}

View File

@@ -125,7 +125,7 @@ static void blank_tiles_paint(paint_session* session, int32_t x, int32_t y)
session->SpritePosition.x = x;
session->SpritePosition.y = y;
session->InteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
sub_98196C(session, 3123, 0, 0, 32, 32, -1, 16);
sub_98196C(session, SPR_BLANK_TILE, 0, 0, 32, 32, -1, 16);
}
bool gShowSupportSegmentHeights = false;

View File

@@ -39,6 +39,8 @@ enum
PEEP_SPAWN_ARROW_2 = 3113,
PEEP_SPAWN_ARROW_3 = 3114,
SPR_BLANK_TILE = 3123,
// This is the start of every character there are
// 224 characters per font (first 32 are control codes hence why it doesn't go to 255)
// 4 fonts