mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Migrate image storage from PICT to BMP
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user