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

@@ -5,7 +5,7 @@
//----------------------------------------------------------------------------
//============================================================================
#include "BitmapImage.h"
#include "Externs.h"
#include "RectUtils.h"
@@ -31,7 +31,7 @@ extern short nHotSpots, numChimes;
void GetObjectRect (objectPtr who, Rect *itsRect)
{
THandle<Picture> thePict;
THandle<BitmapImage> thePict;
short wide, tall;
switch (who->what)
@@ -226,7 +226,7 @@ void GetObjectRect (objectPtr who, Rect *itsRect)
}
else
{
*itsRect = (*thePict)->picFrame.ToRect();
*itsRect = (*thePict)->GetRect();
}
ZeroRectCorner(itsRect);
QOffsetRect(itsRect,