Commit Graph

7 Commits

Author SHA1 Message Date
Clownacy
5eafe5b0cc [SDL] the window surface should not be freed
According to SDL's docs, the window surface is freed automatically by
other functions (SDL_Quit in SDL1.2, and SDL_DestroyWindow in SDL2).

I think this might have actually been the cause of those segmentation
errors upon closing that I noticed back when I opened #114.
2018-07-09 18:53:09 +01:00
Clownacy
3edcab0b46 [SDL] SDL_CreateRGBSurface flags are deprecated in SDL2 2018-07-09 18:52:51 +01:00
Clownacy
b68d016aa5 [SDL] fixed fullscreen in SDL2 build 2018-07-01 23:53:54 +01:00
Clownacy
0569355cb5 [SDL] make SDL2 build support 8, 15, and 32BPP rendering 2018-07-01 22:40:30 +01:00
Clownacy
6e9cb90da4 [SDL] SDL_OpenAudio returns negative error codes in SDL2
SDL1.2 just returns -1, which this code was still checking for
2018-07-01 21:33:30 +01:00
Clownacy
cb5b682872 [SDL] don't accept alternate audio formats
On my PC, the SDL2 build doesn't 'obtain' the S16 format it
requests, but since the rest of the SDL2 frontend expects S16, this
causes the audio to fail. So, instead, I force SDL to accept S16, and
just convert to the native format implicitly.

I also applied this to every sound format setting, since I imagine the
frontend doesn't support obtaining only one channel, or a non 48kHz
frequency.
2018-07-01 21:27:58 +01:00
Clownacy
4cea68fa10 [SDL/SDL2] merged SDL1 and SDL2 files 2016-11-03 15:21:25 +00:00