Commit c191a1f
committed
This is an initial (mostly working) port to SDL2.
By default SDL1.2 is still used, but by chaning the config.make
option, SDL2 is used instead as a build-time option.
What works, what doesn't?
Working fine:
Joystick input
Mouse input
Keyboard input
Sound
Fullscreen mode-switching - now working
Issues:
Fullscreen (native resolution) *mostly* (there is often some
flickering, switching back and forth fixes it. Needs
investigating.) Okay, I think this is related to the problems
with the splash screen. There's a problem with the GL bounds
I think. I'm not an OpenGL expert by any means, so I'm not
sure what the problem is. Might be an SDL bug.
Splash screen - code is there and no longer prevents startup.
It works sometimes. Usually the first time. Always works
under wayland (with the Wayland SDL video backend), see below.
Windows support is untested. I tried not to break it.
Wayland - I will test this shortly, it works, even the splash screen!
There were some issues resizing under Weston, lack of SSD makes it
tricky anyway! Worked fine under Enlightenment/Wayland.
Android/iPhone, obscure devices ... Probably needs OpenGL ES ...
maybe it just works like Wayland.
There is a lot of code that could be simplified, in particular
it's possible the SDL2 Windows support works...?
Testers/reviewers more than welcome! Especially help with the
GL issues mentioned above.1 parent 3e76dd4 commit c191a1f
File tree
7 files changed
+317
-242
lines changed- src
- Core
- SDL2
7 files changed
+317
-242
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
7 | 19 | | |
8 | 20 | | |
9 | 21 | | |
| |||
23 | 35 | | |
24 | 36 | | |
25 | 37 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
29 | 41 | | |
30 | | - | |
| 42 | + | |
31 | 43 | | |
32 | 44 | | |
33 | 45 | | |
| |||
49 | 61 | | |
50 | 62 | | |
51 | 63 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
56 | 68 | | |
57 | 69 | | |
58 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
179 | | - | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
0 commit comments