mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
Major draw code refactor
This commit is contained in:
@@ -80,14 +80,15 @@ void DoCommandKey (void)
|
||||
void DoPause (void)
|
||||
{
|
||||
Rect bounds;
|
||||
|
||||
SetPort((GrafPtr)mainWindow);
|
||||
|
||||
DrawSurface *surface = mainWindow->GetDrawSurface();
|
||||
|
||||
QSetRect(&bounds, 0, 0, 214, 54);
|
||||
CenterRectInRect(&bounds, &houseRect);
|
||||
if (isEscPauseKey)
|
||||
LoadScaledGraphic(kEscPausePictID, &bounds);
|
||||
LoadScaledGraphic(surface, kEscPausePictID, &bounds);
|
||||
else
|
||||
LoadScaledGraphic(kTabPausePictID, &bounds);
|
||||
LoadScaledGraphic(surface, kTabPausePictID, &bounds);
|
||||
|
||||
do
|
||||
{
|
||||
|
Reference in New Issue
Block a user