Commit Graph

21 Commits

Author SHA1 Message Date
Allofich
c0665df50c Fix -Wclass-memaccess warnings 2019-09-01 22:33:35 +09:00
Allofich
2907d0e4a5 SVN r4197
Change multi-remain to repeat last parsed value for non-string types if
the next value is empty and of the same type as the last.

Use this to add an optional parameter to sensitivity which controls the
y axis. When optional parameter is missing, x and y axis have the same
value.
Change limits on sensitivity to allow for negative values so the Mouse
Y-axis can be inversed.
2019-06-05 22:14:46 +09:00
Allofich
dca42adec0 SVN r3929
Add some more cases to the Alt-tab detection. It can still mess up, but
this should help with a lot of cases.
2019-05-06 19:41:58 +09:00
Jonathan Campbell
1f00cdc123 Try to resolve SDL2 potential crashes by initializing SDL pointers to NULL 2019-04-14 17:27:09 -07:00
Jonathan Campbell
a629e39716 More work to enable SDL2 OpenGL 2019-03-11 00:07:30 -07:00
Jonathan Campbell
7297d3202f Mac OS X monitor position and size 2019-02-06 17:16:38 -08:00
Jonathan Campbell
8969c8a98e more 2019-02-05 22:49:50 -08:00
Jonathan Campbell
2396ff6538 Begin Win32 monitor detect 2019-02-05 22:44:40 -08:00
Jonathan Campbell
cf2a67e259 Screen info: When reporting the screen the DOSBox-X window is on, also provide the X/Y coordinates of the screen on the desktop 2019-02-05 14:30:10 -08:00
Jonathan Campbell
5371382300 SDL1 when filling in desktop width and height, keep track which dimensions were automatically filled in 2018-12-24 03:27:58 -08:00
Jonathan Campbell
4fb2f8f02f Indicate method 2018-09-08 19:12:48 -07:00
Jonathan Campbell
204493502c Linux/X11: Add code to read screen dimensions the X11 method (which are not quite accurate though) 2018-09-08 18:59:08 -07:00
Jonathan Campbell
0a0b07e18e more 2018-07-13 02:01:59 -07:00
Jonathan Campbell
82760618f1 more 2018-07-13 02:01:21 -07:00
Jonathan Campbell
2ff0abedb8 Fixup alex/at changes to compile in Linux 2018-07-12 01:37:26 -07:00
Alex/AT
36f2d5f318 - Generalize aspect correction (fit and extend) functions, removing duplicated code from outputs 2018-07-05 13:04:47 +03:00
Alex/AT
ef56baf4da - Now that sdlmain.h can be included in render.cpp, finally aggregate xBRZ structure split between sdl/render earlier, and move it to output_tools_xbrz, where it should logically reside
- Move xBRZ initialization and option reads to output_tools_xbrz.cpp, removing RENDER_xBRZ_Early_Init() hack
2018-07-01 12:35:11 +03:00
Alex/AT
7bd0b2c4da - Continuing sdlmain.cpp output code cleanup
- Moved out almost all Direct3D related code to its corresponding .cpp/.h
- Moved out int_log2 to output_tools.h, leaving it static/inline
- Added config option C_DIRECT3D
- Some bracket cleanup here and there
- Define output shutdown function, used by DIRECT3D only now
2018-07-01 12:10:45 +03:00
Alex/AT
8f4ff8aa59 - Continuing sdlmain.cpp output code cleanup
- Move OpenGL output code from sdlmain.cpp to separate .cpp/.h
- Move sdl_opengl structure out of sdl structure, move some 'global' OpenGL related variables to it
- Generalize fallback to surface output in mode selection / sizing code (retFlags = 0 means we could not choose a mode and need to fallback), no weird goto anymore, log if even surface output routine returned zero
- OpenGL/D3D routines changed sdl.desktop.type individually. Now we set it to actual sdl.desktop.want_type value after fallbacks are processed (want_type is filled by OUTPUT_*_Select)
- Add OUTPUT_*_Initialize() routines to allow

- Small part of Direct3D related code moved out as well in preparation for next step (moving Direct3D output code out)

- TODO: Many supplementary OpenGL related code remains in sdlmain.cpp, needs to be assessed and moved out as well
2018-06-30 20:18:39 +03:00
Alex/AT
d89ac281e3 - Splitted out SDL2 surface output code builds now
- Split SDL1 and SDL2 dependent output_surface.cpp parts into separate files to improve readability
2018-06-30 14:46:01 +03:00
Alex/AT
100bdf0c95 - No functional changes in regards to majority of the code
- Start partial refactor of sdlmain.cpp output code
- Move general definitions into sdlmain.h (incomplete)
- Move little part of OpenGL output related code out
- Move almost all of surface output related code out
- Generalize xBRZ postscaling operations into their own respective function to reuse

- Bugfix: commits 3a8d77f and ebdfc33 break intentional output window fill-in for xBRZ
- Minor: non-ppl runs can be done without granularity based loop, adjusted

- TODO: continue factoring out output code
- TODO: SDL2 build is probably not xBRZ-capable now
- TODO: see what can be used instead of ppl taskgroups for other platforms, xBRZ is too slow without parallel processing
- TODO: adjust other build configurations to include new source files / headers
2018-06-30 13:59:11 +03:00