1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

398 Commits

Author SHA1 Message Date
narzoul
408ccee3d8 Added DisplayRefreshRate setting 2022-09-27 21:45:03 +02:00
narzoul
0d85ab5dc6 Added highlighting and focus to config overlay 2022-09-27 21:45:03 +02:00
narzoul
9d7f36c45b Scale config overlay with resolution 2022-09-27 21:45:03 +02:00
narzoul
229fe449ef Merge helper GUI threads 2022-09-27 21:45:02 +02:00
narzoul
fa8dec88c5 Block DwmEnableComposition
Fixes main menu flickering in Rogue Spear on Windows 7 (#126)
2022-09-27 21:45:02 +02:00
narzoul
177b81921a Fixed Window::invalidatedRegion reset to null instead of empty 2022-09-27 21:45:02 +02:00
narzoul
7a84efc1da Apply ResolutionScale to layered windows 2022-09-27 21:45:01 +02:00
narzoul
26261b5287 Handle oversized surface blits in system memory 2022-09-27 21:45:01 +02:00
narzoul
c714383613 Added ResolutionScale setting 2022-09-27 21:45:01 +02:00
narzoul
8b393ea498 Fix vertex positions via vertex shader 2022-09-27 21:45:00 +02:00
narzoul
075287b16a Perform sysmem to vidmem render target blits via Direct3D 2022-09-27 21:44:59 +02:00
narzoul
436a8184bb Handle mirroring and color keying via Direct3D 2022-09-27 21:44:59 +02:00
narzoul
c1e654de7d Added RenderColorDepth setting 2022-09-27 21:44:59 +02:00
narzoul
9fb450e233 Accumulate device state changes 2022-09-27 21:44:59 +02:00
narzoul
664c573d91 Fixed performance issues caused by D3DKMTWaitForVerticalBlankEvent
See issue #104 and #120.
2022-09-27 21:44:58 +02:00
narzoul
175d7e7c53 Upgrade to VS 2022 2022-09-27 21:44:58 +02:00
narzoul
b878028748 Always wait for flip before Blt/Lock
Returning DDERR_WASSTILLDRAWING interferes with rendering in Lego Island.
Viewport clear should wait for flip, but it's internally buffered by ddraw
and flushed during Blt, which didn't happen because of Blt failing early.
2022-09-27 21:44:58 +02:00
narzoul
67f38479b7 Count non-local vidmem as local up to the 1GB limit
Compensates for DVMT not reporting sufficient local video memory
for surface allocation on integrated Intel GPUs.
2022-09-27 21:44:58 +02:00
narzoul
5eaa79d04c Improved logging of pointers and references 2022-09-27 21:44:58 +02:00
narzoul
62e7dc0850 Remove deleted vertex buffers from device state 2022-09-27 21:44:57 +02:00
narzoul
3c4a8ef2c5 Fixed conflicts with local outdated copies of DbgHelp.dll 2022-09-27 21:44:57 +02:00
narzoul
199d434f29 Added config overlay 2022-09-27 21:44:56 +02:00
narzoul
fb6555523f Added Antialiasing setting 2022-09-27 21:44:56 +02:00
narzoul
bb987d25b1 Added TextureFilter setting 2022-09-27 21:44:56 +02:00
narzoul
a3fa5cd898 Added AlternatePixelCenter setting 2022-09-27 21:44:56 +02:00
narzoul
2b691ebdc7 Increment clipper ref count while attached to a surface
Fixes a crash in Midtown Madness startup.

Clipper attached to primary surface was destroyed before
Surface destructor was executed.
2022-09-27 21:44:56 +02:00
narzoul
00a78097d2 Added DisplayFilter setting 2022-09-27 21:44:55 +02:00
narzoul
ffc8e04a35 Added SupportedResolutions setting 2022-09-27 21:44:55 +02:00
narzoul
ee350c7f08 Added DesktopColorDepth setting 2022-09-27 21:44:55 +02:00
narzoul
7dfb030ae2 Restrict GDI redirection to main monitor in fullscreen mode
Fixes display issues with games not respecting surface pitch
2022-09-27 21:44:54 +02:00
narzoul
0584a0007a Fixed popup menu position in scaled fullscreen mode 2022-09-27 21:44:53 +02:00
narzoul
f7962f6e3b Fixed presentation of layered windows in scaled fullscreen mode 2022-09-27 21:44:53 +02:00
narzoul
ccc23c75b9 Emulate hardware cursor in scaled fullscreen mode 2022-09-27 21:44:53 +02:00
narzoul
647a4bfcff Added DisplayResolution setting 2022-09-27 21:44:53 +02:00
narzoul
62983b19fe Create helper surfaces via DirectDraw runtime 2022-09-27 21:44:53 +02:00
narzoul
51a451f424 Perform P8 to R8G8B8 conversion in pixel shader 2022-09-27 21:44:53 +02:00
narzoul
74460b2d24 Added CpuAffinity setting 2022-09-27 21:44:52 +02:00
narzoul
b3b54d5fbd Added ThreadPriorityBoost setting 2022-09-27 21:44:35 +02:00
narzoul
6f92c8ef22 Added config parser 2022-09-22 18:53:57 +02:00
narzoul
97f56131ac Fixed hooking of delay-loaded DLL functions
Fixes blank intro videos in Midtown Madness 1.
See issue #99.
2022-09-22 18:53:57 +02:00
narzoul
f1d8dbd1cb Fixed hangup while installing hooks on Windows 11 22H2 v0.3.2 2022-09-22 18:53:54 +02:00
narzoul
359256660e Fixed flickering mouse cursor in Icewind Dale 2 v0.3.1 2021-05-15 19:25:33 +02:00
narzoul
9fa1a8a047 Fixed GDI brush origin
Fixes splash window background alignment in Star Trek: Armada.
See issue #94.
2021-05-15 16:29:10 +02:00
narzoul
83143589ee Fixed crash caused by implicit release of clippers
See issues #96 and #97.
2021-05-15 16:29:10 +02:00
narzoul
dfbc27247a Fixed index buffer overflow
Fixes a crash in Laghaim.
See issue #98.
2021-05-15 16:29:10 +02:00
narzoul
af6cafd65e Fixed painting of owner-drawn buttons
Fixes invisible disabled buttons in Gangsters: Organized Crime.
See issue #95.
2021-05-15 16:28:51 +02:00
narzoul
0ada5acea7 Fixed crash at startup in Debug build
See issue #96.
2021-05-13 23:10:32 +02:00
narzoul
7c506d86c9 Support unicode file paths 2021-05-12 21:53:19 +02:00
narzoul
ded2c92c3a Updated license and readme v0.3.0 2021-04-09 00:31:40 +02:00
narzoul
1f5c86be11 Added tools 2021-04-09 00:31:32 +02:00