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

449 Commits

Author SHA1 Message Date
narzoul
19899f81c9 Fixed a crash in IAT hooking when encountering imports by ordinals
See issue #149.
2022-10-05 19:38:09 +02:00
narzoul
7a59458d58 Updated the readme for v0.4.0 v0.4.0 2022-09-27 21:45:22 +02:00
narzoul
70b2e42640 Workaround for inconsistent point scaled blitting on NVIDIA 2022-09-27 21:45:22 +02:00
narzoul
c7ee5206d8 Added ResolutionScaleFilter setting 2022-09-27 21:45:22 +02:00
narzoul
13e4d90116 Added SoftwareDevice setting 2022-09-27 21:45:21 +02:00
narzoul
bb0eadc310 Added PalettizedTextures setting 2022-09-27 21:45:20 +02:00
narzoul
a775e256ea Support emulation of alpha blended cursors 2022-09-27 21:45:20 +02:00
narzoul
8419e09604 Fixed color key issues in Settlers 4 2022-09-27 21:45:19 +02:00
narzoul
ebba0ec6a4 Restore primary surface globals if create fails
Fixes error creating "second" primary in Prince of Persia 3D when
starting a new game.  First primary is not completely released because
IDirectDrawGammaControl is not released. Native ddraw still allows
creation of a second fullscreen primary in this case.

This fix replaces the previous fix for Conquest: Frontier Wars also.
2022-09-27 21:45:19 +02:00
narzoul
d4f5020e6f Disable application calls to timeBeginPeriod/timeEndPeriod
Fixes stuttering in Pacific General.
2022-09-27 21:45:18 +02:00
narzoul
3d958e5ef2 Fixed multi-threaded issues with emulated mouse cursor
Fixes invisible cursor after alt-tabbing in Beach Life.
2022-09-27 21:45:18 +02:00
narzoul
524f708a7f Handle display scaling while primary surface is lost 2022-09-27 21:45:18 +02:00
narzoul
9bca0a6ba0 Fixed alt-tabbing in Titanic: Adventure Out of Time 2022-09-27 21:45:18 +02:00
narzoul
6fdc7ad21a Prevent creating multiple primary surfaces
Fixes borderless fullscreen mode in Conquest: Frontier Wars
2022-09-27 21:45:17 +02:00
narzoul
6327bc506f Create default primary in fullscreen mode
Fixes intro videos displaying in a small window in Midtown Madness 2
2022-09-27 21:45:17 +02:00
narzoul
2099c80095 Fixed GDI display issues in Titanic: Adventure Out of Time 2022-09-27 21:45:16 +02:00
narzoul
f13d842c24 Prevent ddraw from removing the WS_CLIPCHILDREN style
In borderless fullscreen mode, ddraw removes the WS_CLIPCHILDREN style
from the device window for some reason, but it doesn't do that in
exclusive fullscreen mode.

Preventing ddraw from removing the style fixes invisible menus in
Tiberian Sun when using FullscreenMode=borderless.
2022-09-27 21:45:16 +02:00
narzoul
027b52686e Added FontAntialiasing setting 2022-09-27 21:45:15 +02:00
narzoul
32f9e7296d Position combobox dropdown to fit within config overlay window 2022-09-27 21:45:15 +02:00
narzoul
18360643f5 Fixed handleActivateApp not enumerating some surfaces 2022-09-27 21:45:15 +02:00
narzoul
8fc97386b6 Added FpsLimiter setting 2022-09-27 21:45:14 +02:00
narzoul
bf58555d22 Use default primary if none exists for windowed fullscreen presentation 2022-09-27 21:45:14 +02:00
narzoul
d39a4ab0fc Fixed stuck taskbar buttons 2022-09-27 21:45:14 +02:00
narzoul
5ce5ea0668 Handle DisplayResolution scaling in windowed mode 2022-09-27 21:45:14 +02:00
narzoul
fc16184256 Handle resolution scaling in windowed mode 2022-09-27 21:45:13 +02:00
narzoul
96ad1d6ab6 Added DpiAwareness setting 2022-09-27 21:45:12 +02:00
narzoul
fa99142587 Added AlignSysMemSurfaces setting 2022-09-27 21:45:12 +02:00
narzoul
641df63f14 Use types and constants from ddrawi.h 2022-09-27 21:45:11 +02:00
narzoul
726f237724 Don't hook drivers for Direct3D 8/9 runtimes 2022-09-27 21:45:11 +02:00
narzoul
0b1980bf20 Fill the black screen borders during scaled presentation
Necessary for cleaning up NVIDIA overlay.
2022-09-27 21:45:11 +02:00
narzoul
c3f0f9491a Added export/import/reset buttons to config overlay 2022-09-27 21:45:11 +02:00
narzoul
9a37aa6e24 Added caption and close button to config overlay 2022-09-27 21:45:10 +02:00
narzoul
87c2af5049 Added LogLevel setting 2022-09-27 21:45:10 +02:00
narzoul
32301efd5c Workaround for NVIDIA texture color key bug 2022-09-27 21:45:10 +02:00
narzoul
6463cc84aa Update only changed pixels when scaled render target is unlocked 2022-09-27 21:45:09 +02:00
narzoul
0bc2694cce Force resolution scaling on primary surface 2022-09-27 21:45:09 +02:00
narzoul
22c61dc115 Added BltFilter setting 2022-09-27 21:45:08 +02:00
narzoul
516ed1f7da Added WinVersionLie setting 2022-09-27 21:45:08 +02:00
narzoul
04c29d1f38 Added RemoveBorders setting 2022-09-27 21:45:08 +02:00
narzoul
0ee03e4553 Added KeepVideoMemory setting 2022-09-27 21:45:07 +02:00
narzoul
01be996c36 Fixed dialog window position in scaled fullscreen mode 2022-09-27 21:45:06 +02:00
narzoul
31444c364a Support gamma ramps in borderless fullscreen mode 2022-09-27 21:45:06 +02:00
narzoul
9813e8b1b7 Added VSync setting 2022-09-27 21:45:05 +02:00
narzoul
80863f77a7 Updated presentation logic 2022-09-27 21:45:05 +02:00
narzoul
55eab96f78 Added FullscreenMode setting 2022-09-27 21:45:05 +02:00
narzoul
fb9f28456e Added ForceD3D9On12 setting 2022-09-27 21:45:05 +02:00
narzoul
ea369261df Added SpriteDetection setting 2022-09-27 21:45:04 +02:00
narzoul
20912dce37 Added support for D3D9On12 (windowed mode only) 2022-09-27 21:45:04 +02:00
narzoul
6ca41202f3 Added SpriteFilter config 2022-09-27 21:45:03 +02:00
narzoul
19985f294e Added SpriteTexCoord setting 2022-09-27 21:45:03 +02:00