[Scummvm-git-logs] scummvm master -> 7d6f2ced5037e43e0f245cdedb07d4e1bc9edc2d
spleen1981
noreply at scummvm.org
Sun Mar 26 22:47:33 UTC 2023
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5f93be7d97 LIBRETRO: add endianess test to supported pixel formats
7d6f2ced50 LIBRETRO: BUILD: add USE_HIGHRES define
Commit: 5f93be7d97bcb768338e7faca9bb4768c6fb5f87
https://github.com/scummvm/scummvm/commit/5f93be7d97bcb768338e7faca9bb4768c6fb5f87
Author: Giovanni Cascione (ing.cascione at gmail.com)
Date: 2023-03-27T00:46:45+02:00
Commit Message:
LIBRETRO: add endianess test to supported pixel formats
and revert re-sorting
Changed paths:
backends/platform/libretro/src/libretro-os.cpp
diff --git a/backends/platform/libretro/src/libretro-os.cpp b/backends/platform/libretro/src/libretro-os.cpp
index 65101c388b1..f157920af6c 100644
--- a/backends/platform/libretro/src/libretro-os.cpp
+++ b/backends/platform/libretro/src/libretro-os.cpp
@@ -463,12 +463,13 @@ public:
virtual Common::List<Graphics::PixelFormat> getSupportedFormats() const {
Common::List<Graphics::PixelFormat> result;
- /* Palette - most games */
- result.push_back(Graphics::PixelFormat::createFormatCLUT8());
-
+#ifdef SCUMM_LITTLE_ENDIAN
/* RGBA8888 */
result.push_back(Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0));
-
+#else
+ /* ABGR8888 */
+ result.push_back(Graphics::PixelFormat(4, 8, 8, 8, 8, 0, 8, 16, 24));
+#endif
#ifdef FRONTEND_SUPPORTS_RGB565
/* RGB565 - overlay */
result.push_back(Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0));
@@ -476,6 +477,9 @@ public:
/* RGB555 - fmtowns */
result.push_back(Graphics::PixelFormat(2, 5, 5, 5, 1, 10, 5, 0, 15));
+ /* Palette - most games */
+ result.push_back(Graphics::PixelFormat::createFormatCLUT8());
+
return result;
}
Commit: 7d6f2ced5037e43e0f245cdedb07d4e1bc9edc2d
https://github.com/scummvm/scummvm/commit/7d6f2ced5037e43e0f245cdedb07d4e1bc9edc2d
Author: Giovanni Cascione (ing.cascione at gmail.com)
Date: 2023-03-27T00:47:05+02:00
Commit Message:
LIBRETRO: BUILD: add USE_HIGHRES define
Changed paths:
backends/platform/libretro/Makefile.common
diff --git a/backends/platform/libretro/Makefile.common b/backends/platform/libretro/Makefile.common
index 21b21b3b051..e0c17edec53 100644
--- a/backends/platform/libretro/Makefile.common
+++ b/backends/platform/libretro/Makefile.common
@@ -40,6 +40,9 @@ UNAVAILABLE_DEPS :=
check_deps_availability = $(shell [ $(1) = 0 ] && echo $(2))
USE_HIGHRES ?= 1
+ifeq ($(USE_HIGHRES),1)
+DEFINES += -DUSE_HIGHRES
+endif
UNAVAILABLE_DEPS += $(call check_deps_availability, $(USE_HIGHRES), highres)
USE_FLUIDSYNTH ?= 1
More information about the Scummvm-git-logs
mailing list