2582 Commits

Author SHA1 Message Date
Michael Martin 9f193f123e Backfit commit 'c0bc500620' to SDL1/2:
"Added gamma correction option to the setup menu; bug #977; some work from Nic"
2020-04-03 18:27:40 -07:00
Michael Martin 562917b456 Merge post-0.7.0 commits through 'c8250d8b8' into v0.7.2.
sdl_common.c has lost some commits in the restructuring and those
will need to be replayed over the restructured files for SDL1 and 2.
2020-04-03 17:43:49 -07:00
Michael Martin 21740dd74b Strip out command line arguments added by the macOS Finder even without SDLmain.a 2019-11-23 17:00:03 -08:00
Michael Martin 7907e36fd4 Lose Apple branch of SDL_include and prefer non-system headers 2019-11-16 22:09:21 -08:00
Michael Martin a3da3759b4 Adapt MixSDL to the SDL2 audio API and allow format conversion.
Adapted from a patch by Ala-lala; assists with Windows sound output
2019-10-27 15:35:19 -07:00
Michael Martin c7bbbd717c Fix program icon when starting in fullscreen in SDL2, from Ala-lala 2019-10-27 15:02:19 -07:00
Michael Martin c3ab0ed545 Fix transparency in truecolor RGBA images, from Ala-lala 2019-10-27 15:01:59 -07:00
Michael Martin 427d38dc59 Fix logging of SDL2 renderer name, from Ala-lala 2019-10-27 15:01:53 -07:00
Michael Martin e267e107f5 Alter sdluio function signatures based on SDL version. Fixes ARM build. 2019-10-06 23:13:01 -07:00
Michael Martin 5682c41778 Fix buggy preprocessor conditional 2019-10-06 23:13:01 -07:00
Michael Martin a5e233fb11 Fixed another instance of only checking for EAGAIN from a socket, from Ala-lala 2019-10-01 23:58:49 -07:00
Michael Martin d884b3f6d6 Fix netplay on modern versions of Visual Studio, from Ala-lala 2019-10-01 23:56:25 -07:00
Michael Martin ab9a04979a Decode the UTF-8 input from SDL2's text input buffers 2019-09-29 20:18:37 -07:00
Michael Martin 4a8012091b Implement scanlines for SDL2 2019-09-29 00:27:22 -07:00
Michael Martin 02c2827bc0 Properly set SDL2 texture scaling hints 2019-09-28 22:16:23 -07:00
Michael Martin 563ffa6ed1 Officially support 1280x960 (4x) as a resolution. 2019-09-28 19:03:30 -07:00
Michael Martin 6855fb028d Fix resolution configuration on SDL2 2019-09-28 18:54:22 -07:00
Michael Martin 6f63db2c3d Fix pointer arithmetic bug where MSVC rejects the code 2019-09-25 22:23:21 -07:00
Michael Martin f973106448 SDL2 build for macOS under brew 2019-09-08 23:15:12 -07:00
Michael Martin 91b2235753 Fix screen transitions and clip rectangles on SDL2 2019-09-08 22:52:42 -07:00
Michael Martin ada05cb9fe Fix 'extra' screen on SDL2 2019-09-08 22:23:24 -07:00
Michael Martin 4c1cd71d40 Improve use of SDL2 textures.
Texture formats are now stated explicitly and the backing surfaces are
configured to match them. Texture are now explicitly marked as streaming
textures, which should improve GPU performance on drivers that care. The
texture upload step now respects dirty rectangles.
2019-09-08 22:18:49 -07:00
Michael Martin 5a289fce34 ASCII text input for SDL2 2019-08-31 22:31:45 -07:00
Michael Martin 5896ee56b2 Fix hilarious font rendering bug; format_conv_surf needs an Amask 2019-08-25 22:40:16 -07:00
Michael Martin 761843cc72 SDL2 thread IDs can be 64-bit 2019-08-25 16:45:49 -07:00
Michael Martin 8fb39785b2 Fix format conversion surface 2019-08-25 16:05:43 -07:00
Michael Martin e841546e0b Properly initialize the SDL-common level screens for SDL2 2019-08-25 15:38:57 -07:00
Michael Martin a07e65ffd3 Cut out text input from SDL2 until it can be tested 2019-08-25 15:38:42 -07:00
Michael Martin f1e29a0fda Fix linking issues 2019-08-25 15:14:46 -07:00
Michael Martin 4edbf36836 Fix the remaining non-unicode version issues in the input library 2019-08-25 00:33:00 -07:00
Michael Martin d5407378ac Bridge the gap between SDL1, SDL2, and UQM threads 2019-08-24 18:12:59 -07:00
Michael Martin 371a42acdd Complete the refactoring of the SDL graphics libs 2019-08-24 17:58:24 -07:00
Michael Martin 846315325b Rework previous refactoring to use new generic colorkey/alphamod routines 2019-08-24 00:35:18 -07:00
Michael Martin f396e6ec8f Additional orthogonalization and defensive coding around colorkeys and alpha mods 2019-08-24 00:05:28 -07:00
Michael Martin b6724c9300 Abstract operations on SDL_surface flags behind accessors 2019-08-21 21:43:36 -07:00
Michael Martin a6d42126f7 Adjust APIs for SDL2 2019-08-21 01:25:20 -07:00
Michael Martin 93e6253caf Check the right flag value for fullscreen in SDL2 2019-08-21 01:09:49 -07:00
Michael Martin 28000b95c2 Compute the window caption at the proper time for SDL2 2019-08-21 01:07:12 -07:00
Michael Martin d812d3acc8 Split out the bits of sdl_common.c that are version specific. SDL2 fixes still need to be done. 2019-08-21 00:54:22 -07:00
Michael Martin 31e6d51dc8 First incomplete draft of SDL2 Pure driver 2019-08-20 00:49:41 -07:00
Michael Martin 29fcff95c7 Generalize more common elements of graphics backends, isolate backend-specific parts 2019-08-17 20:56:25 -07:00
Michael Martin dd4c3e433e Update version to 0.7.1 alpha 2019-08-17 20:48:44 -07:00
Michael Martin b724f372dd Enhance config script to allow selecting SDL1 or 2 backends 2019-08-16 00:51:23 -07:00
Michael Martin ce92261641 Some more cleanup to make SDL common code friendly to SDL1 and SDL2 2019-08-15 21:55:40 -07:00
Michael Martin d579108794 Ignore keyrepeat events in SDL2 2019-08-12 22:24:23 -07:00
Michael Martin 40c60bc08a Generalize VControl to work with SDL1 and SDL2.
SDL2's keycodes do not form a contiguous range the way SDL1's do,
so we need to perform separate chaining of bindings.
2019-08-11 20:14:11 -07:00
Michael Martin 65f5b27f8d Remove the last vestige of the internal SDL_IMAGE macros 2019-08-10 15:41:11 -07:00
Michael Martin 3e6f9cf5b1 Remove SDL_image and link against libpng directly 2019-08-10 13:34:16 -07:00
Michael Martin 6428238e51 Update all problematic include guards.
All-caps identifiers that start with an underscore may be reserved
for compiler or library use, and recent versions of gcc or glibc
have been stealing symbols away from us.
2018-01-20 18:02:03 -08:00
Michael Martin 327e3f2566 Fix debug build on gcc7 2018-01-12 23:39:54 -08:00