mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:57:34 +00:00
Ports: Update genemu's patches to use git patches
This required splitting the single patch file up, which was done with _some_ degree of accuracy (but not entirely so).
This commit is contained in:
parent
c92ec097c0
commit
2f58fe00bd
7 changed files with 199 additions and 111 deletions
32
Ports/genemu/patches/0005-Use-software-rendering.patch
Normal file
32
Ports/genemu/patches/0005-Use-software-rendering.patch
Normal file
|
@ -0,0 +1,32 @@
|
|||
From ca395dd67bfc14dcfe769b42f2ec2d3107987cab Mon Sep 17 00:00:00 2001
|
||||
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
|
||||
Date: Mon, 16 May 2022 15:32:14 +0430
|
||||
Subject: [PATCH 5/5] Use software rendering
|
||||
|
||||
---
|
||||
hw.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/hw.c b/hw.c
|
||||
index 6b864df..1f34423 100644
|
||||
--- a/hw.c
|
||||
+++ b/hw.c
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "hw.h"
|
||||
-#include <SDL.h>
|
||||
+#include <SDL2/SDL.h>
|
||||
#include <assert.h>
|
||||
#include <time.h>
|
||||
|
||||
@@ -105,7 +105,7 @@ void hw_enable_video(int enable)
|
||||
screen = SDL_CreateWindow("Genemu - Sega Genesis Emulator",
|
||||
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
|
||||
WINDOW_WIDTH, WINDOW_WIDTH*3/4, SDL_WINDOW_RESIZABLE);
|
||||
- renderer = SDL_CreateRenderer(screen, -1, SDL_RENDERER_PRESENTVSYNC);
|
||||
+ renderer = SDL_CreateRenderer(screen, -1, SDL_RENDERER_SOFTWARE);
|
||||
|
||||
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest"); // make the scaled rendering look smoother.
|
||||
SDL_RenderSetLogicalSize(renderer, 320, 240);
|
||||
--
|
||||
2.36.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue