mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Fix cancelling spellcast with escape
This commit is contained in:
@@ -168,7 +168,7 @@ void ScreenHandler::recreateWindowAndScreenBuffers()
|
||||
|
||||
void ScreenHandler::updateWindowState()
|
||||
{
|
||||
#if !defined(VCMI_MOBILE)
|
||||
#ifdef VCMI_MOBILE
|
||||
int displayIndex = getPreferredDisplayIndex();
|
||||
|
||||
switch(getPreferredWindowMode())
|
||||
@@ -332,7 +332,7 @@ void ScreenHandler::onScreenResize()
|
||||
|
||||
void ScreenHandler::validateSettings()
|
||||
{
|
||||
#if !defined(VCMI_MOBILE)
|
||||
#ifdef VCMI_MOBILE
|
||||
{
|
||||
int displayIndex = settings["video"]["displayIndex"].Integer();
|
||||
int displaysCount = SDL_GetNumVideoDisplays();
|
||||
|
||||
Reference in New Issue
Block a user