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

Ports: Update chester's patches to use git patches

This commit is contained in:
Ali Mohammad Pur 2022-05-16 19:21:30 +04:30 committed by Ali Mohammad Pur
parent 4874465018
commit 57a98258aa
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,35 @@
From e04b0fad889f05382a80fd5ac4bd3561afb1c058 Mon Sep 17 00:00:00 2001
From: Manuel Palenzuela <manuelpalenzuelamerino@gmail.com>
Date: Tue, 30 Mar 2021 17:26:39 +0200
Subject: [PATCH] Disable SDL accelerated rendering
That's not supported on serenity.
---
src/app/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/main.c b/src/app/main.c
index cfd46b8..fc47912 100644
--- a/src/app/main.c
+++ b/src/app/main.c
@@ -47,7 +47,7 @@ bool init_graphics(gpu *g)
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
X_RES * WINDOW_SCALE, Y_RES * WINDOW_SCALE,
- SDL_WINDOW_OPENGL);
+ 0);
if (sdl_graphics_ptr->window == NULL)
{
@@ -58,7 +58,7 @@ bool init_graphics(gpu *g)
sdl_graphics_ptr->renderer = SDL_CreateRenderer(sdl_graphics_ptr->window,
-1,
- SDL_RENDERER_ACCELERATED);
+ 0);
if (sdl_graphics_ptr->renderer == NULL)
{
--
2.36.1