Commit 77457c1
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 mostly working
Issues:
Fullscreen *mostly* (there is often some
flickering sometimes, switching back and forth fixes it.
Okay, I think this is might be 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 exactly. A bigger issue is changing
fullscreen resolutions from the in game menu only properly
resizes going down, going up leaves the "window" at the
previous size but like the flickering, switching to windowed
and back fixes it.
Splash screen - code is there and no longer prevents startup.
It works sometimes. I tried writing a test outside the game
and it worked fine. Something is strange, under X the window
doesn't get painted or contains random video memory, once the
game starts rendering it's fine. It always works under
wayland (with the Wayland SDL video backend), see below.
Windows support is untested. I tried not to break it, or
even change it where possible.
Wayland - it works, even the splash screen!
There were some issues resizing under Weston, possibly fixed
now, lack of Server Side Decorations 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 77457c1
File tree
7 files changed
+307
-240
lines changed- src
- Core
- SDL2
7 files changed
+307
-240
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