[Scummvm-git-logs] scummvm master -> a99867cc47a86ece29dea37436de1a7b9fcec201
dreammaster
dreammaster at scummvm.org
Mon Feb 8 15:49:46 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a99867cc47 AGS: Set the correct screen size for high resolution games
Commit: a99867cc47a86ece29dea37436de1a7b9fcec201
https://github.com/scummvm/scummvm/commit/a99867cc47a86ece29dea37436de1a7b9fcec201
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2021-02-08T07:49:42-08:00
Commit Message:
AGS: Set the correct screen size for high resolution games
Changed paths:
engines/ags/engine/gfx/ali3dscummvm.cpp
engines/ags/engine/main/graphics_mode.cpp
diff --git a/engines/ags/engine/gfx/ali3dscummvm.cpp b/engines/ags/engine/gfx/ali3dscummvm.cpp
index a4425d63bf..69a17bf18e 100644
--- a/engines/ags/engine/gfx/ali3dscummvm.cpp
+++ b/engines/ags/engine/gfx/ali3dscummvm.cpp
@@ -100,7 +100,7 @@ bool ALScummVMGraphicsDriver::IsModeSupported(const DisplayMode &mode) {
set_allegro_error("Invalid resolution parameters: %d x %d x %d", mode.Width, mode.Height, mode.ColorDepth);
return false;
}
-#if AGS_PLATFORM_OS_ANDROID || AGS_PLATFORM_OS_IOS || AGS_PLATFORM_OS_MACOS
+#if AGS_PLATFORM_OS_ANDROID || AGS_PLATFORM_OS_IOS || AGS_PLATFORM_OS_MACOS || defined(USE_HIGHRES)
// Everything is drawn to a virtual screen, so all resolutions are supported.
return true;
#endif
diff --git a/engines/ags/engine/main/graphics_mode.cpp b/engines/ags/engine/main/graphics_mode.cpp
index 9fbdb6aa6b..90120f1326 100644
--- a/engines/ags/engine/main/graphics_mode.cpp
+++ b/engines/ags/engine/main/graphics_mode.cpp
@@ -43,7 +43,7 @@
namespace AGS3 {
// Don't try to figure out the window size on the mac because the port resizes itself.
-#if AGS_PLATFORM_OS_MACOS || defined(ALLEGRO_SDL2) || AGS_PLATFORM_OS_IOS || AGS_PLATFORM_OS_ANDROID
+#if AGS_PLATFORM_OS_MACOS || defined(ALLEGRO_SDL2) || AGS_PLATFORM_OS_IOS || AGS_PLATFORM_OS_ANDROID || defined(USE_HIGHRES)
#define USE_SIMPLE_GFX_INIT
#endif
More information about the Scummvm-git-logs
mailing list