1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-26 10:29:23 +01:00

71 Commits

Author SHA1 Message Date
FunkyFr3sh
4e869e7d03 add support for DDBLT_KEYSRCOVERRIDE and dwColorSpaceHighValue 2019-05-02 22:46:00 +02:00
FunkyFr3sh
bf79aa0db8 adjust logging 2019-04-14 08:22:00 +02:00
FunkyFr3sh
3cd635fb01 add GUID to logs 2019-04-14 07:52:40 +02:00
FunkyFr3sh
03100ee84b optional hotpatch support 2019-03-19 07:44:34 +01:00
FunkyFr3sh
f41b2fc177 use memset for DDBLT_COLORFILL 2018-12-10 05:55:48 +01:00
FunkyFr3sh
6b0fbce7f8 add guardlines to HeapAlloc too in case bitmap creation fails 2018-12-02 07:31:53 +01:00
FunkyFr3sh
66e37ed961 add 200 guardlines to prevent crashes 2018-12-02 06:53:11 +01:00
FunkyFr3sh
abf71c70ca fix flip limiter 2018-11-30 02:59:56 +01:00
FunkyFr3sh
435854456b use waitable timers for better precision (limit game ticks / flip wait) 2018-11-29 17:45:10 +01:00
FunkyFr3sh
093486ec7f add some memcpy tweaks, not sure if it actually helps 2018-11-29 01:39:03 +01:00
FunkyFr3sh
6d337393ee force DDSCAPS_VIDEOMEMORY for all surfaces, otherwise red alert 2 is not using ddraw blt 2018-11-28 23:11:10 +01:00
FunkyFr3sh
8c119f4e33 remove dune2000 presets and enable DDFLIP_WAIT limiter instead 2018-11-28 14:14:26 +01:00
FunkyFr3sh
14304ff330 only limit game ticks via unlock if there was never any blt or flip 2018-11-28 13:40:29 +01:00
FunkyFr3sh
8e75c40cc3 revert LimitGameTicks changes since it's causing flickering in unpatched versions of cnc1 and ra1 2018-11-28 13:28:07 +01:00
FunkyFr3sh
4ab472ab9b enable flip for dune 2000 2018-11-28 12:45:47 +01:00
FunkyFr3sh
85b6ad7201 add all resolutions to the in-game list (Tiberian Sun / Red Alert 2) 2018-11-24 23:36:38 +01:00
FunkyFr3sh
64a3d0d5e1 use higher flip timeout 2018-11-20 07:33:17 +01:00
FunkyFr3sh
c2821b7c48 add another surface width workaround 2018-11-19 15:07:43 +01:00
FunkyFr3sh
a4c30f7ad8 don't use HeapAlloc in EnumAttachedSurfaces 2018-11-19 11:13:36 +01:00
FunkyFr3sh
650496065b add hack for westwood nox 2018-11-19 09:56:27 +01:00
FunkyFr3sh
5d2d258d52 save last flip tick to force redraw in case the game switches between blt and flip 2018-11-19 08:36:18 +01:00
FunkyFr3sh
add701a7f6 add some more debugging code 2018-11-19 07:40:07 +01:00
FunkyFr3sh
c434e74216 support GetColorKey 2018-11-18 13:31:00 +01:00
FunkyFr3sh
ecef95cbb6 add ddscaps to surface desc 2018-11-18 07:06:13 +01:00
FunkyFr3sh
7ec7f853d2 fix DirectDrawSurface::QueryInterface 2018-11-17 09:06:11 +01:00
FunkyFr3sh
b4da3fc3c4 check if stretch or clip is needed 2018-11-17 06:55:24 +01:00
FunkyFr3sh
ab5542fd9d some more changes to scaling code 2018-11-17 06:23:56 +01:00
FunkyFr3sh
1ac3402cfa some fixes for last commig 2018-11-17 06:09:13 +01:00
FunkyFr3sh
e4437a278f Linear scaling using integer math (copied from ts-ddraw) 2018-11-17 05:54:22 +01:00
FunkyFr3sh
ee6266519a remove src_w and src_h from bltfast 2018-11-17 04:46:36 +01:00
FunkyFr3sh
f39d1d0385 do some more colorfill tweaks 2018-11-17 04:25:18 +01:00
FunkyFr3sh
d00b95f8b0 improve DDBLT_COLORFILL performance - fill only the first row and then copy first row into the remaining rows 2018-11-17 03:48:41 +01:00
FunkyFr3sh
b04dc01104 make opengl compatible with older versions than 2.0 (for 16bit games only) 2018-11-15 06:16:09 +01:00
FunkyFr3sh
806746d364 experimental 16bit color support (Dune 2000) 2018-11-14 05:35:59 +01:00
FunkyFr3sh
bdb5675459 make maxgameticks working via surface unlock for atomic bomberman 2018-11-09 20:39:45 +01:00
FunkyFr3sh
b4e196ca79 fix gdi flip bug 2018-10-31 15:49:18 +01:00
FunkyFr3sh
0e6d415f63 remove sleep hack and add a smarter game speed limiter that takes the games performance into account 2018-10-31 11:48:41 +01:00
FunkyFr3sh
2d4841beda handle ddraw_surface_QueryInterface 2018-10-31 00:33:21 +01:00
FunkyFr3sh
737a26bfb3 add Dungeon Keeper preset + required hack 2018-10-30 21:48:01 +01:00
FunkyFr3sh
82b245228c add dummy callback + new preset 2018-10-30 19:38:32 +01:00
FunkyFr3sh
90a31e1daf limit resolutions in EnumDisplayModes to prevent crashes 2018-10-30 17:54:14 +01:00
FunkyFr3sh
478d716a26 init rgb palette on surface::SetPalette 2018-10-30 15:54:52 +01:00
FunkyFr3sh
8ae70e454f fix DDSCAPS_PRIMARYSURFACE check in surface->release 2018-10-30 14:05:43 +01:00
FunkyFr3sh
49c4fe826d fix debug define 2018-10-30 12:43:44 +01:00
FunkyFr3sh
d79b2086cc make sure only 8bit video modes are used + add some more debugging code 2018-10-30 08:29:19 +01:00
FunkyFr3sh
8f394009b1 add AoE2 workaround 2018-10-29 07:01:32 +01:00
FunkyFr3sh
7f0eef570b add partial support for DDBLT_KEYSRC 2018-10-27 09:23:00 +02:00
FunkyFr3sh
8e53cdc5fa fix palette issues on GetDC 2018-10-27 07:43:47 +02:00
FunkyFr3sh
202e4eb869 improve logging 2018-10-26 10:34:45 +02:00
FunkyFr3sh
88faf16fd9 bump version 2018-10-26 08:46:12 +02:00