mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
change hardware cursor to software cursor when joystick available
This commit is contained in:
@@ -583,3 +583,8 @@ bool ScreenHandler::hasFocus()
|
||||
ui32 flags = SDL_GetWindowFlags(mainWindow);
|
||||
return flags & SDL_WINDOW_INPUT_FOCUS;
|
||||
}
|
||||
|
||||
void ScreenHandler::getRenderScale(float & scaleX, float & scaleY)
|
||||
{
|
||||
SDL_RenderGetScale(mainRenderer, &scaleX, &scaleY);
|
||||
}
|
||||
Reference in New Issue
Block a user