91 Commits

Author SHA1 Message Date
Alex/AT
b0b406d8e5 - OUTPUT: Fix aspect ratio correction for Direct3D and OpenGL output modes, fix default window sizing for aspect correction, fix 'jumpy' behavior during window resizing with aspect ratio correction
- OUTPUT: Offload aspect ratio correction for Direct3D and OpenGL output modes from render code (these modes do it themselves)
- xBRZ: Also offload it when xBRZ scaler is enabled (xBRZ does not like line duplication and can do correction itself)
- OUTPUT: Store source aspect ratio translation parameters under 'sdl' structure, this may be used eventually for non-square pixel monitors aspect ratio correction
- xBRZ: Make sure xBRZ scaler honors aspect ratio correction flag in 'surface' mode of operation and controls aspect ratio correction offload when enabling/disabling itself
- xBRZ: Factor out scaling factor setup into its own function
- xBRZ: Fix up duplicated code path breaking 'surface' output
- MAIN: Split 'overlay' mode defaulting from primary 'if' set, making it simply choosing D3D/OGL/surface before primary 'if' goes
- DOC: README.xbrz
- DOC: clarify that SDL structure is initialized to zero in code comment, initialize defaults after memset()
2018-06-28 18:58:15 +03:00
Aybe
feeddf0671 Now conditionally compiles 2018-06-27 01:29:00 +02:00
Aybe
1e80498419
Merge branch 'xbrz' into xbrz 2018-06-15 22:12:40 +02:00
Jonathan Campbell
9d22cf0ed8 -Wsign-conversion fixup 2018-06-02 20:54:40 -07:00
Aybe
0489b8c532 Ensure doublescan is disabled. 2018-06-01 23:11:17 +02:00
Alex/AT
64a78e246c [+] xBRZ scaler integration 2018-06-01 20:02:42 +03:00
Jonathan Campbell
8b8a4b2ee7 retab, reindent 2018-05-22 15:47:03 -07:00
Jonathan Campbell
8917be0162 more 2018-05-22 15:34:21 -07:00
Jonathan Campbell
ea9e8eaa7e more 2018-05-22 09:08:47 -07:00
Jonathan Campbell
a63203f5d2 SSE2 mingw x86-64 hack, to enable compilation with 64-bit mingw 2018-05-19 16:31:33 -07:00
Jonathan Campbell
ce8f9e9226 GFX_SetSize throw E_Exit if given width == 0 or height == 0. Fix renderer never to reset state with 0x0 render dimensions 2018-05-14 01:19:17 -07:00
Jonathan Campbell
9ccc531ccd Render: Set clearCache flag on mode change, do not reset flag until one full frame has been rendered with the clearCache handler. This fixes visual glitches when toying with options like the VGA 9-pixel wide option 2018-05-12 16:36:17 -07:00
Jonathan Campbell
a6d415714f Renderer: Use SSE compare OR non-SSE compare, but do not SSE compare then non-SSE compare the same line. Fix renderer SSE compare to use the correct sizeof() of Bitu instead of assuming Bitu is 32-bit wide 2018-05-12 15:57:37 -07:00
Jonathan Campbell
4137ae2d91 Bring in compat menu options 2018-05-11 17:26:22 -07:00
Jonathan Campbell
2a8c885978 Bring scaler menu from the Windows resource 2018-05-10 21:19:33 -07:00
Jonathan Campbell
6e8aca679c Port frameskip submenu from Windows RC menu 2018-05-10 20:37:44 -07:00
Jonathan Campbell
012caca69d Remove default bindings for some shortcuts, move volup/voldown to host key + keypad 2018-04-20 22:10:26 -07:00
Jonathan Campbell
a6b3e7f954 SDL 1.x Windows: Fix Direct3D output to keep aspect ratio properly if asked to, even if the window is not fullscreen but maximized. 2018-01-21 08:32:28 -08:00
Jonathan Campbell
5627bf0e10 When setting up renderer, store the GFX flags obtained for decisions
later on.
2018-01-09 03:08:58 -08:00
Jonathan Campbell
e51bb675ff GFX: Correct bit depth value returned from SDL if SDL says 16-bit
highcolor but the RGB mask/shift values indicate that it's really 15-bit
highcolor. This fixes incorrect colors when the screen uses the 5:5:5
15-bit highcolor format.
2018-01-07 12:28:04 -08:00
Jonathan Campbell
236cdbbb12 more 2017-12-08 00:13:34 -08:00
Jonathan Campbell
d2baaa48ce Update renderer when user changes render.aspect setting. 2017-12-05 21:39:27 -08:00
Jonathan Campbell
0a2823d6ad Windows: Fix "aspect ratio correction" menu item so that it actually changes the setting. 2017-12-05 21:36:17 -08:00
Aybe
2135119cf1 enable logging for pixratio 2017-08-24 03:20:37 +02:00
Jonathan Campbell
0512852b16 VGA: planar mask vs linear mask. fix VGA RAM alloc to only do it if
changing VRAM size (forced on for the moment for testing). fix stale
pointer problem causing segfault with VGA/RENDER code when reallocing
vram.
2017-04-01 11:40:38 -07:00
Jonathan Campbell
482b37c82a bugfix: when DOSBox is rendering 8bpp output, store palette changes in a
8bpp -> 32bpp lookup and encode to FFMPEG as 32bpp. It's easier to deal
with than trying to use FFMPEG's PAL8 format, and it allows the FFMPEG
encode to work with machine=cga.
2016-01-25 06:43:27 -08:00
Jonathan Campbell
2dc8a97a79 VGA_Init move VGA reset code to VM event 2015-10-17 08:40:56 +00:00
Jonathan Campbell
dd12a66593 debug msg 2015-10-14 16:37:43 +00:00
Jonathan Campbell
424c4f009a render init 2015-10-11 09:12:57 +00:00
Jonathan Campbell
16c96bc462 fixup DOSBox "pause" function. respond to keypress, not release. get rid
of stupid delay. add code to allow "frame stepping" by pausing, then
hitting Spacebar to step per frame.
2015-03-22 22:54:20 -07:00
Jonathan Campbell
fd6aa4006d printf/scanf fixes 2015-01-31 08:46:21 -08:00
Jonathan Campbell
ffbad0b2b3 svn mainline r3878:
Year update.
2015-01-25 21:13:25 -08:00
Jonathan Campbell
645616369f remove linewise option 2014-08-10 16:45:44 -07:00
Jonathan Campbell
08492a2de9 remove linewise setting. linewise mode is always enabled now. 2014-06-27 23:47:34 -07:00
Jonathan Campbell
a051487ead remove unused variables, fix type comparison issues, remove unused label
(replace with comment).
2014-05-17 10:52:44 -07:00
Jonathan Campbell
70ba0d6162 configuration bugfix: clamp frameskip=0 if frameskip is a negative
number in the configuration file.
2014-04-27 21:34:47 -07:00
Jonathan Campbell
c00f3a7da0 change "multiscan" name to "doublescan", clarify it's purpose, make it
set by default.
2014-01-20 16:37:05 -08:00
Jonathan Campbell
822293dad4 remainder of save state code removed from h/w and system emulation 2013-10-20 13:27:17 -07:00
Jonathan Campbell
6d1bee6256 remove visualc platform code. remove Thread Building Blocks usage. 2013-10-20 00:50:31 -07:00
Jonathan Campbell
21614b8c3f toss out my copy, integrate tawoongs's daum branch code into mine,
remove what won't compile, begin work.
2013-10-14 05:07:26 -07:00
root
f331824031 port from svn 2013-07-07 20:39:49 -07:00