mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Renamed gesture-related methods, remove unused code
This commit is contained in:
@ -34,7 +34,7 @@
|
||||
#include <SDL_surface.h>
|
||||
|
||||
CWindowObject::CWindowObject(int options_, std::string imageName, Point centerAt):
|
||||
WindowBase(getUsedEvents(options_), Point()),
|
||||
WindowBase(0, Point()),
|
||||
options(options_),
|
||||
background(createBg(imageName, options & PLAYER_COLORED))
|
||||
{
|
||||
@ -55,7 +55,7 @@ CWindowObject::CWindowObject(int options_, std::string imageName, Point centerAt
|
||||
}
|
||||
|
||||
CWindowObject::CWindowObject(int options_, std::string imageName):
|
||||
WindowBase(getUsedEvents(options_), Point()),
|
||||
WindowBase(0, Point()),
|
||||
options(options_),
|
||||
background(createBg(imageName, options_ & PLAYER_COLORED))
|
||||
{
|
||||
@ -107,13 +107,6 @@ void CWindowObject::setBackground(std::string filename)
|
||||
updateShadow();
|
||||
}
|
||||
|
||||
int CWindowObject::getUsedEvents(int options)
|
||||
{
|
||||
if (options & RCLICK_POPUP)
|
||||
return SHOW_POPUP;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void CWindowObject::updateShadow()
|
||||
{
|
||||
setShadow(false);
|
||||
|
Reference in New Issue
Block a user