mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-14 02:33:51 +02:00
Fixed CID 1288846
This commit is contained in:
parent
8b4f1fc938
commit
418babce81
@ -709,6 +709,14 @@ CMapHandler::CMapPuzzleViewBlitter::CMapPuzzleViewBlitter(CMapHandler * parent)
|
|||||||
unblittableObjects.push_back(Obj::HOLE);
|
unblittableObjects.push_back(Obj::HOLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CMapHandler::CMapBlitter::CMapBlitter(CMapHandler * p)
|
||||||
|
:parent(p), tileSize(0), halfTileSizeCeil(0), info(nullptr)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
CMapHandler::CMapBlitter::~CMapBlitter() = default;
|
||||||
|
|
||||||
void CMapHandler::CMapBlitter::drawFrame(SDL_Surface * targetSurf) const
|
void CMapHandler::CMapBlitter::drawFrame(SDL_Surface * targetSurf) const
|
||||||
{
|
{
|
||||||
Rect destRect(realTileRect);
|
Rect destRect(realTileRect);
|
||||||
|
@ -254,8 +254,8 @@ class CMapHandler
|
|||||||
IImage * findFlagBitmapInternal(std::shared_ptr<CAnimation> animation, int anim, int group, ui8 dir, bool moving) const;
|
IImage * findFlagBitmapInternal(std::shared_ptr<CAnimation> animation, int anim, int group, ui8 dir, bool moving) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CMapBlitter(CMapHandler * p) : parent(p) {}
|
CMapBlitter(CMapHandler * p);
|
||||||
virtual ~CMapBlitter(){}
|
virtual ~CMapBlitter();
|
||||||
void blit(SDL_Surface * targetSurf, const MapDrawingInfo * info);
|
void blit(SDL_Surface * targetSurf, const MapDrawingInfo * info);
|
||||||
/// helper method that chooses correct bitmap(s) for given object
|
/// helper method that chooses correct bitmap(s) for given object
|
||||||
AnimBitmapHolder findObjectBitmap(const CGObjectInstance * obj, int anim) const;
|
AnimBitmapHolder findObjectBitmap(const CGObjectInstance * obj, int anim) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user