leo60228
7baf143a6b
Add necessary Emscripten linker flags
2021-08-31 10:28:55 -07:00
leo60228
6d57ccc25b
Support Emscripten in FileSystemUtils
2021-08-31 10:28:55 -07:00
leo60228
a689c3ab96
Support Emscripten's SDL2
...
Emscripten defaults to using SDL 2.0.10, but
`export EMCC_LOCAL_PORTS=sdl2=/path/to/SDL2` seems to work.
2021-08-31 10:28:55 -07:00
leo60228
c1950037c2
Use SDL_OpenURL in FILESYSTEM_openDirectory ( #623 )
...
The recently released SDL 2.0.14 adds a native function for opening URIs
from the host system, superseding the OS-specific implementations of
FILESYSTEM_openDirectory.
2021-02-19 21:16:19 -05:00
leo60228
b5ef10cae5
Consistently use Screen::GetWindowSize
2021-01-18 13:10:22 -05:00
leo60228
46d8599f62
Use SDL_GetRendererOutputSize instead of SDL_GetWindowSize
...
SDL_GetRendererOutputSize will always return the actual size, even in
some obscure HiDPI/macOS cases.
2021-01-18 13:10:06 -05:00
leo60228
d9fff2a8c3
Set SDL window as DPI-aware
...
This works on macOS, Wayland, and a few more esoteric platforms. X11
doesn't have a concept of DPI-awareness. Note that with this flag
SDL_GetWindowSize() isn't guaranteed to return the actual window size.
2021-01-18 13:09:47 -05:00
leo60228
89886e6c52
Run CI on CentOS 7 ( #574 )
2021-01-11 00:30:15 -05:00
leo60228
6795856431
Use SDL_fabsf where std::abs was previously used
2021-01-01 22:37:46 -05:00
leo60228
91c3e6cbc5
Revert "Document SDL_abs vs. SDL_fabs"
...
This reverts commit 8c472ed73d .
2021-01-01 22:37:46 -05:00
leo60228
8c472ed73d
Document SDL_abs vs. SDL_fabs
2021-01-01 21:10:16 -05:00
leo60228
c4893a133f
Use SDL_abs instead of std::abs
...
This prevents issues when calling std::abs with a float on some older
compilers. While it would normally be promoted to an int, std::abs is
special due to being overloaded despite being a C function. This can
cause errors due to the compiler being unable to find a float overload.
SDL_abs doesn't have this problem, since it's a normal C function.
2021-01-01 21:10:16 -05:00
leo60228
a99e976402
Support hex entities in metadata
2020-06-15 20:32:10 -04:00
leo60228
dd5c50c94c
Fix some leaks
2020-06-07 22:40:03 -04:00
leo60228
887c1fbf96
Don't leak flipbfont
2020-06-07 22:40:03 -04:00
leo60228
abbf6bafb9
Don't leak sounds/music
2020-06-07 22:40:03 -04:00
leo60228
f3b26904ec
Don't leak binaryBlob
2020-06-07 22:40:03 -04:00
leo60228
9b91047bba
Find SDL_mixer.h instead of assuming it's in the same location as SDL.h
2020-06-07 22:40:03 -04:00
leo60228
d193caac98
Revert "Add destructor for SoundTrack/MusicTrack (and explicitly define move constructor to prevent double-free)"
...
This reverts commit 2f760af439 .
2020-06-07 22:40:03 -04:00
leo60228
098fb77611
Set C++ standard to C++98
2020-06-07 22:40:03 -04:00
leo60228
e71f47f1c9
Clear soundTracks and musicTracks on musicclass::init
2020-06-07 00:04:42 -04:00
leo60228
2f760af439
Add destructor for SoundTrack/MusicTrack (and explicitly define move constructor to prevent double-free)
2020-06-07 00:04:42 -04:00