mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Reviewed usage of EBlitMode, now specified clearly in all cases
This commit is contained in:
@@ -47,10 +47,10 @@ CursorHandler::CursorHandler()
|
||||
|
||||
cursors =
|
||||
{
|
||||
GH.renderHandler().loadAnimation(AnimationPath::builtin("CRADVNTR")),
|
||||
GH.renderHandler().loadAnimation(AnimationPath::builtin("CRCOMBAT")),
|
||||
GH.renderHandler().loadAnimation(AnimationPath::builtin("CRDEFLT")),
|
||||
GH.renderHandler().loadAnimation(AnimationPath::builtin("CRSPELL"))
|
||||
GH.renderHandler().loadAnimation(AnimationPath::builtin("CRADVNTR"), EImageBlitMode::COLORKEY),
|
||||
GH.renderHandler().loadAnimation(AnimationPath::builtin("CRCOMBAT"), EImageBlitMode::COLORKEY),
|
||||
GH.renderHandler().loadAnimation(AnimationPath::builtin("CRDEFLT"), EImageBlitMode::COLORKEY),
|
||||
GH.renderHandler().loadAnimation(AnimationPath::builtin("CRSPELL"), EImageBlitMode::COLORKEY)
|
||||
};
|
||||
|
||||
set(Cursor::Map::POINTER);
|
||||
@@ -101,7 +101,7 @@ void CursorHandler::dragAndDropCursor(std::shared_ptr<IImage> image)
|
||||
|
||||
void CursorHandler::dragAndDropCursor (const AnimationPath & path, size_t index)
|
||||
{
|
||||
auto anim = GH.renderHandler().loadAnimation(path);
|
||||
auto anim = GH.renderHandler().loadAnimation(path, EImageBlitMode::COLORKEY);
|
||||
dragAndDropCursor(anim->getImage(index));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user