summaryrefslogtreecommitdiff
path: root/Ports/Super-Mario/patches/0002-Disable-graphics-acceleration.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Ports/Super-Mario/patches/0002-Disable-graphics-acceleration.patch')
-rw-r--r--Ports/Super-Mario/patches/0002-Disable-graphics-acceleration.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/Ports/Super-Mario/patches/0002-Disable-graphics-acceleration.patch b/Ports/Super-Mario/patches/0002-Disable-graphics-acceleration.patch
new file mode 100644
index 0000000000..0600742b4c
--- /dev/null
+++ b/Ports/Super-Mario/patches/0002-Disable-graphics-acceleration.patch
@@ -0,0 +1,33 @@
+From 4a8e24e824e0de7557ae15414d30a1b49d14ce0d Mon Sep 17 00:00:00 2001
+From: Manuel Palenzuela <manuelpalenzuelamerino@gmail.com>
+Date: Sun, 4 Apr 2021 00:41:48 +0200
+Subject: [PATCH 2/5] Disable graphics acceleration
+
+Disables SDL2 hardware acceleration as we don't support that.
+---
+ src/Core.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Core.cpp b/src/Core.cpp
+index c04581b..f0c0308 100644
+--- a/src/Core.cpp
++++ b/src/Core.cpp
+@@ -36,7 +36,7 @@ CCore::CCore(void) {
+ quitGame = true;
+ }
+
+- rR = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
++ rR = SDL_CreateRenderer(window, -1, 0);
+
+ // ----- ICO
+ std::string filename = "files/images/ico.bmp";
+@@ -376,4 +376,4 @@ void CCore::resetMove() {
+
+ Map* CCore::getMap() {
+ return oMap;
+-}
+\ No newline at end of file
++}
+--
+2.36.1
+