Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
cookbook
Commits
6ee311dc
Commit
6ee311dc
authored
6 years ago
by
Nagy Tibor
Browse files
Options
Downloads
Patches
Plain Diff
sdl: Revert unicode fix
parent
1dba36c3
No related branches found
No related tags found
1 merge request
!153
sdl: Revert unicode fix
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
recipes/sdl/01_orbital.patch
+2
-3
2 additions, 3 deletions
recipes/sdl/01_orbital.patch
with
2 additions
and
3 deletions
recipes/sdl/01_orbital.patch
+
2
−
3
View file @
6ee311dc
...
...
@@ -69,7 +69,7 @@ diff -rupNw source-original/include/SDL_config.h.in source/include/SDL_config.h.
diff -rupNw source-original/src/video/orbital/SDL_orbitalevents.c source/src/video/orbital/SDL_orbitalevents.c
--- source-original/src/video/orbital/SDL_orbitalevents.c 1970-01-01 01:00:00.000000000 +0100
+++ source/src/video/orbital/SDL_orbitalevents.c 2018-05-01 17:31:52.770229654 +0200
@@ -0,0 +1,19
8
@@
@@ -0,0 +1,19
7
@@
+/*
+ SDL - Simple DirectMedia Layer
+ Copyright (C) 1997-2012 Sam Lantinga
...
...
@@ -110,7 +110,6 @@ diff -rupNw source-original/src/video/orbital/SDL_orbitalevents.c source/src/vid
+static bool last_button_middle = false;
+static bool last_button_right = false;
+
+// TODO: Find out why NetSurf recieves NULL chars when the keysym.unicode field is used
+void ORBITAL_PumpEvents(_THIS)
+{
+ SDL_keysym keysym;
...
...
@@ -121,7 +120,7 @@ diff -rupNw source-original/src/video/orbital/SDL_orbitalevents.c source/src/vid
+ while (oeo.tag != OrbEventOption_None) {
+ switch (oeo.tag) {
+ case OrbEventOption_Key:
+
//
keysym.unicode = oeo.key.character;
+ keysym.unicode = oeo.key.character;
+ keysym.scancode = oeo.key.scancode;
+ keysym.sym = keymap[oeo.key.scancode];
+ keysym.mod = KMOD_NONE;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment