summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-05-16 19:21:36 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-05-19 20:17:10 +0430
commitc92ec097c01e5e97837acb9b46c5a22ec4ec6028 (patch)
tree16c6addd6aeef04611b809bb1a9b8c2efb6f5dca
parentbf5f83907ffae516e6ece2d8b8fe166a9c632852 (diff)
downloadserenity-c92ec097c01e5e97837acb9b46c5a22ec4ec6028.zip
Ports: Update freedink's patches to use git patches
-rw-r--r--Ports/freedink/patches/0001-Remove-android-specific-SDL-hint.patch27
-rw-r--r--Ports/freedink/patches/ReadMe.md7
-rw-r--r--Ports/freedink/patches/input.cpp.patch13
3 files changed, 34 insertions, 13 deletions
diff --git a/Ports/freedink/patches/0001-Remove-android-specific-SDL-hint.patch b/Ports/freedink/patches/0001-Remove-android-specific-SDL-hint.patch
new file mode 100644
index 0000000000..460f1270ca
--- /dev/null
+++ b/Ports/freedink/patches/0001-Remove-android-specific-SDL-hint.patch
@@ -0,0 +1,27 @@
+From 53958f5cfb0efa2978bb913ffe610f7903e6c69b Mon Sep 17 00:00:00 2001
+From: Brendan Coles <bcoles@gmail.com>
+Date: Thu, 28 Oct 2021 11:27:43 +0000
+Subject: [PATCH] Remove android-specific SDL hint
+
+---
+ src/input.cpp | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/src/input.cpp b/src/input.cpp
+index b5ae21e..b6ac494 100644
+--- a/src/input.cpp
++++ b/src/input.cpp
+@@ -89,10 +89,6 @@ void input_init(void)
+ // It also keeps the mouse within the window in software mode.
+ SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1");
+
+- // TODO: don't attempt to simulate mouse events from touch events -
+- // fake mouse events often are de-centered
+- SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "0");
+-
+ /* Touch devices */
+ {
+ int i;
+--
+2.36.1
+
diff --git a/Ports/freedink/patches/ReadMe.md b/Ports/freedink/patches/ReadMe.md
new file mode 100644
index 0000000000..af93bae951
--- /dev/null
+++ b/Ports/freedink/patches/ReadMe.md
@@ -0,0 +1,7 @@
+# Patches for freedink on SerenityOS
+
+## `0001-Remove-android-specific-SDL-hint.patch`
+
+Remove android-specific SDL hint
+
+
diff --git a/Ports/freedink/patches/input.cpp.patch b/Ports/freedink/patches/input.cpp.patch
deleted file mode 100644
index 8335a217a1..0000000000
--- a/Ports/freedink/patches/input.cpp.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- freedink-109.6/src/input.cpp 2021-10-24 21:47:29.904647862 -0700
-+++ freedink-109.6/src/input.cpp 2021-10-24 21:47:32.528649774 -0700
-@@ -89,10 +89,6 @@
- // It also keeps the mouse within the window in software mode.
- SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1");
-
-- // TODO: don't attempt to simulate mouse events from touch events -
-- // fake mouse events often are de-centered
-- SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "0");
--
- /* Touch devices */
- {
- int i;