Migrate image storage from PICT to BMP

This commit is contained in:
elasota
2020-01-18 21:15:07 -05:00
parent 69ef542969
commit 93b4554961
28 changed files with 438 additions and 344 deletions

View File

@@ -6,6 +6,7 @@
#include "PLResources.h"
#include "BitmapImage.h"
#include "Externs.h"
#include "FontFamily.h"
#include "FontManager.h"
@@ -60,11 +61,11 @@ extern short wasScoreboardMode;
void InitScoreboardMap (void)
{
Rect bounds;
THandle<Picture> thePicture;
DrawSurface *wasCPort;
PLError_t theErr;
short hOffset;
Rect bounds;
THandle<BitmapImage> thePicture;
DrawSurface *wasCPort;
PLError_t theErr;
short hOffset;
wasScoreboardMode = kScoreboardHigh;
boardSrcRect = houseRect;
@@ -79,7 +80,7 @@ void InitScoreboardMap (void)
thePicture = GetPicture(kScoreboardPictID);
if (thePicture == nil)
RedAlert(kErrFailedGraphicLoad);
bounds = (*thePicture)->picFrame.ToRect();
bounds = (*thePicture)->GetRect();
QOffsetRect(&bounds, -bounds.left, -bounds.top);
QOffsetRect(&bounds, hOffset, 0);
boardSrcMap->DrawPicture(thePicture, bounds);