1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Do not track clipboard on mobile systems to avoid permissions prompt

This commit is contained in:
Ivan Savenko
2025-03-26 16:00:31 +00:00
parent 8a0fed7b3a
commit 7d3e59d7d3
3 changed files with 38 additions and 13 deletions

View File

@@ -85,7 +85,7 @@ SDL_Surface * CSDL_Ext::newSurface(const Point & dimensions, SDL_Surface * mod)
std::string messagePattern = "Failed to create SDL Surface of size %d x %d, %d bpp. Reason: %s";
std::string message = boost::str(boost::format(messagePattern) % dimensions.x % dimensions.y % mod->format->BitsPerPixel % error);
handleFatalError(message, true);
throw std::runtime_error(message);
}
if (mod->format->palette)