mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Blacken scoreboard after game since it doesn't have a region reserved on mobile
This commit is contained in:
@@ -426,6 +426,7 @@ Boolean OpenSavedGame (void);
|
|||||||
//void SaveGame (Boolean);
|
//void SaveGame (Boolean);
|
||||||
|
|
||||||
void RefreshScoreboard (SInt16); // --- Scoreboard.c
|
void RefreshScoreboard (SInt16); // --- Scoreboard.c
|
||||||
|
void ClearScoreboard (void);
|
||||||
void HandleDynamicScoreboard (void);
|
void HandleDynamicScoreboard (void);
|
||||||
void QuickGlidersRefresh (void);
|
void QuickGlidersRefresh (void);
|
||||||
void QuickScoreRefresh (void);
|
void QuickScoreRefresh (void);
|
||||||
|
@@ -214,6 +214,8 @@ void NewGame (short mode)
|
|||||||
playing = true; // everything before this line is game set-up
|
playing = true; // everything before this line is game set-up
|
||||||
PlayGame(); // everything following is after a game has ended
|
PlayGame(); // everything following is after a game has ended
|
||||||
|
|
||||||
|
ClearScoreboard();
|
||||||
|
|
||||||
#ifdef CREATEDEMODATA
|
#ifdef CREATEDEMODATA
|
||||||
DumpToResEditFile((Ptr)demoData, sizeof(demoType) * (long)demoIndex);
|
DumpToResEditFile((Ptr)demoData, sizeof(demoType) * (long)demoIndex);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -87,6 +87,16 @@ void RefreshScoreboard (SInt16 mode)
|
|||||||
PortabilityLayer::MenuManager::GetInstance()->SetMenuVisible(false);
|
PortabilityLayer::MenuManager::GetInstance()->SetMenuVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ClearScoreboard (void)
|
||||||
|
{
|
||||||
|
DrawSurface *surface = boardWindow->GetDrawSurface();
|
||||||
|
|
||||||
|
PortabilityLayer::ResolveCachingColor blackColor(StdColors::Black());
|
||||||
|
surface->FillRect(boardWindow->GetSurfaceRect(), blackColor);
|
||||||
|
MarkScoreboardPortDirty();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------- HandleDynamicScoreboard
|
//-------------------------------------------------------------- HandleDynamicScoreboard
|
||||||
|
|
||||||
void HandleDynamicScoreboard (void)
|
void HandleDynamicScoreboard (void)
|
||||||
|
Reference in New Issue
Block a user