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

Ports/pt2-clone: Update pt2-clone to version 1.43

Upgrade patches to git style, add ReadMe.md and remove from the list
of ports missing descriptions.
This commit is contained in:
EWouters 2022-04-01 04:59:20 +02:00 committed by Brian Gianforcaro
parent d6ce3a842c
commit d89a58216d
8 changed files with 66 additions and 25 deletions

View file

@ -0,0 +1,26 @@
From eec08d29c64513c6ebba4af8a367c61aa7bfa1fa Mon Sep 17 00:00:00 2001
From: EWouters <6179932+EWouters@users.noreply.github.com>
Date: Tue, 5 Apr 2022 14:55:01 +0200
Subject: [PATCH 2/2] Hacky Mouse
Set video.useDesktopMouseCoords to false.
---
src/pt2_visuals.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pt2_visuals.c b/src/pt2_visuals.c
index 40527f5..0b73b9a 100644
--- a/src/pt2_visuals.c
+++ b/src/pt2_visuals.c
@@ -2416,7 +2416,7 @@ bool setupVideo(void)
SDL_ShowCursor(SDL_FALSE);
// Workaround: SDL_GetGlobalMouseState() doesn't work with KMSDRM/Wayland
- video.useDesktopMouseCoords = true;
+ video.useDesktopMouseCoords = false;
const char *videoDriver = SDL_GetCurrentVideoDriver();
if (videoDriver != NULL && (strcmp("KMSDRM", videoDriver) == 0 || strcmp("wayland", videoDriver) == 0))
video.useDesktopMouseCoords = false;
--
2.32.0 (Apple Git-132)