1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-31 02:07:34 +00:00

Ports: Update angband's patches to use git patches

This commit is contained in:
Ali Mohammad Pur 2022-05-16 19:21:28 +04:30 committed by Ali Mohammad Pur
parent cbd76e0531
commit 0880542d99
3 changed files with 50 additions and 16 deletions

View file

@ -0,0 +1,37 @@
From 03f7c6e9c77b5084fd5a2b32b3c6f13c152a52b5 Mon Sep 17 00:00:00 2001
From: Tim Schumacher <timschumi@gmx.de>
Date: Sun, 17 Oct 2021 15:44:23 +0200
Subject: [PATCH 1/2] Disable hardware acceleration
We don't support this, so disable it.
---
src/main-sdl2.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/main-sdl2.c b/src/main-sdl2.c
index a678c29..51a343c 100644
--- a/src/main-sdl2.c
+++ b/src/main-sdl2.c
@@ -4867,7 +4867,7 @@ static void start_window(struct window *window)
if (window->config == NULL) {
window->renderer = SDL_CreateRenderer(window->window,
- -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE);
+ -1, SDL_RENDERER_SOFTWARE | SDL_RENDERER_TARGETTEXTURE);
} else {
/* this is necessary for subwindows to have their own textures */
window->config->renderer_flags |= SDL_RENDERER_TARGETTEXTURE;
@@ -5894,9 +5894,7 @@ static enum parser_error config_window_renderer(struct parser *parser)
WINDOW_INIT_OK;
const char *type = parser_getsym(parser, "type");
- if (streq(type, "hardware")) {
- window->config->renderer_flags = SDL_RENDERER_ACCELERATED;
- } else if (streq(type, "software")) {
+ if (streq(type, "software")) {
window->config->renderer_flags = SDL_RENDERER_SOFTWARE;
} else {
return PARSE_ERROR_INVALID_VALUE;
--
2.36.1