Commit Graph

36 Commits

Author SHA1 Message Date
Allofich
cf86151a3f Remove unneeded includes 2021-06-19 17:04:43 +09:00
Allofich
0cac7f216e Localize includes 2021-06-19 17:04:43 +09:00
Allofich
c873e452f3 Remove unneeded includes 2021-06-19 17:04:42 +09:00
Allofich
5565409b48 Remove unneeded includes
Replace config.h include in qcow2_disk.h with standard library includes,
since that's all it was used for.
2021-06-19 17:01:17 +09:00
Wengier
61b807e9ad support system IME for Windows SDL1 builds 2021-06-07 13:46:46 -04:00
Anton Shepelev
5e5d7d1bf4 implement openglpp output 2021-01-19 23:36:35 -05:00
Wengier
70a41d385e support for start DOSBox-X to a specific display 2020-12-09 03:19:55 -05:00
Wengier
ee3121006a more TTF improvements, including support for non-Windows platforms 2020-11-14 19:31:17 -05:00
Wengier
5ce4a511d0 add initial support for TrueType font output (output=ttf in Windows) 2020-11-13 00:28:58 -05:00
Emmanuel Gil Peyrot
c0a106535e Replace Bit32u with uint32_t 2020-09-28 17:14:35 +02:00
Emmanuel Gil Peyrot
a431d81213 Replace Bit16u with uint16_t 2020-09-28 17:14:35 +02:00
Emmanuel Gil Peyrot
35f38f3ebe Replace Bit8u with uint8_t 2020-09-28 17:14:35 +02:00
Jonathan Campbell
f41d156dac more 2020-06-04 13:12:21 -07:00
Allofich
81d2649c67 Fix VS2019 compilation 2020-05-07 23:07:21 +09:00
Jonathan Campbell
06da77003a Apply Wengier patch [https://github.com/joncampbell123/dosbox-x/issues/1483] 2020-04-21 01:33:50 -07:00
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