serenity/Ports/Super-Mario/patches/0002-Disable-graphics-acceleration.patch
2022-05-19 20:17:10 +04:30

34 lines
859 B
Diff

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