Support custom pause and banner graphics

This commit is contained in:
elasota
2020-06-07 19:36:53 -04:00
parent 01e6ff4f5d
commit 47291cbf1d
2 changed files with 7 additions and 7 deletions

View File

@@ -62,17 +62,17 @@ void DrawBanner (Point *topLeft)
topLeft->v = wholePage.top;
partPage = wholePage;
partPage.bottom = partPage.top + 190;
LoadScaledGraphic(workSrcMap, kBannerPageTopPICT, &partPage);
LoadScaledGraphicCustom(workSrcMap, kBannerPageTopPICT, &partPage);
partPage = wholePage;
partPage.top = partPage.bottom - 30;
mapBounds = partPage;
ZeroRectCorner(&mapBounds);
theErr = CreateOffScreenGWorld(&tempMap, &mapBounds, kPreferredPixelFormat);
LoadGraphic(tempMap, kBannerPageBottomPICT);
LoadGraphicCustom(tempMap, kBannerPageBottomPICT);
theErr = CreateOffScreenGWorld(&tempMask, &mapBounds, GpPixelFormats::kBW1);
LoadGraphic(tempMask, kBannerPageBottomMask);
LoadGraphicCustom(tempMask, kBannerPageBottomMask);
CopyMask((BitMap *)*GetGWorldPixMap(tempMap),
(BitMap *)*GetGWorldPixMap(tempMask),
@@ -232,10 +232,10 @@ void DisplayStarsRemaining(void)
NumToString((long)numStarsRemaining, theStr);
if (numStarsRemaining < 2)
LoadScaledGraphic(surface, kStarRemainingPICT, &bounds);
LoadScaledGraphicCustom(surface, kStarRemainingPICT, &bounds);
else
{
LoadScaledGraphic(surface, kStarsRemainingPICT, &bounds);
LoadScaledGraphicCustom(surface, kStarsRemainingPICT, &bounds);
const Point textPoint = Point::Create(bounds.left + 102 - (appFont->MeasurePStr(theStr) / 2), bounds.top + 23);
ColorText(surface, textPoint, theStr, 4L, appFont);
}

View File

@@ -88,9 +88,9 @@ void DoPause (void)
QSetRect(&bounds, 0, 0, 214, 54);
CenterRectInRect(&bounds, &houseRect);
if (isEscPauseKey)
LoadScaledGraphic(surface, kEscPausePictID, &bounds);
LoadScaledGraphicCustom(surface, kEscPausePictID, &bounds);
else
LoadScaledGraphic(surface, kTabPausePictID, &bounds);
LoadScaledGraphicCustom(surface, kTabPausePictID, &bounds);
const KeyDownStates *theKeys = nullptr;