1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-20 08:09:10 +01:00

43 Commits

Author SHA1 Message Date
FunkyFr3sh
772c0374eb fix for render crash 2017-11-12 16:10:15 +01:00
FunkyFr3sh
9bd708d8f5 fully separate render thread to prevent slowdowns in main thread 2017-11-11 23:32:07 +01:00
Toni Spets
5524700d06 Handle DirectDrawSurface::GetPalette, fixes WOL in RA 3.03 2011-12-09 14:10:56 +02:00
Toni Spets
83fba414d4 Fix minor flipping bug that caused flickering in Carmageddon 2011-07-09 12:35:59 +03:00
Toni Spets
517eef41dc Going towards TS support in mainline 2011-07-01 10:55:10 +03:00
Toni Spets
706874f7f9 Implement GetSurfaceDesc, EnumAttachedSurfaces and Flip in IDirectDrawSurface, adds Carmageddon support to mainline 2011-06-29 23:18:42 +03:00
Toni Spets
a40282013b Use a semaphore object to synchronize rendering thread with the game 2011-06-29 22:47:29 +03:00
Toni Spets
f59421bbe8 Fix freezing when minimizing, thanks to Heavylobster for reporting and testing 2010-11-21 18:19:41 +02:00
Toni Spets
8a3f17a18e Use HeapFree() instead of free(), dumb mistake 2010-11-18 16:47:25 +02:00
Toni Spets
6b237c5ba1 Flip scrolling issues around, it'll slow on load instead of jumping fast 2010-11-18 16:46:22 +02:00
Toni Spets
afdc334935 Use HeapFree to free heaps, incorrectly used std free
Convert last malloc/free to HeapAlloc/HeapFree
2010-11-16 17:32:31 +02:00
Toni Spets
fdf8395dd1 Move critical section to main ddraw, fix shadow window bug when exiting fullscreen 2010-11-15 22:25:12 +02:00
Toni Spets
d881b92c1c Support minimize and close buttons 2010-11-13 10:49:46 +02:00
Toni Spets
34df9fe79a Remove legacy ddraw code 2010-11-12 19:50:00 +02:00
Toni Spets
b2c1500c70 Do not free DirectDraw ever, avoids crashing issue on exit with Red Alert, real surface can be freed 2010-11-08 18:54:03 +02:00
Toni Spets
c7bda1c01c Support AddAttachedSurface/DeleteAttachedSurface and update palette reference count when using SetPalette 2010-11-08 18:30:14 +02:00
Toni Spets
1521648a6e Move renderers out of surface 2010-11-06 08:28:11 +02:00
Toni Spets
5edb561b2b Try to avoid race condition on startup, more work on limiting the scrolling speed 2010-11-05 17:45:32 +02:00
Toni Spets
b6f989eeee Synchronize Unlock and Blt with drawing loop, force loop to constant 60 FPS, fixes too fast scrolling (its still fast) 2010-10-27 21:03:09 +03:00
Toni Spets
c196186614 Frame limiter, force the game to draw even when inactive 2010-10-25 18:51:39 +03:00
Toni Spets
03b62b21d4 Fix mouse hooks, workaround 64bit crash 2010-10-24 19:47:51 +03:00
Toni Spets
4e57e75652 First take at real windowed mode, includes a hack for CnC and RA mouse 2010-10-24 01:02:08 +03:00
Toni Spets
b77d441bee Implement all remaining stubs for IDirectDrawSurface, C&C95 now works 2010-10-23 19:54:45 +03:00
Toni Spets
e07abb7e18 Implement all IDirectDraw stubs, C&C now starts up on Wine 2010-10-23 19:25:02 +03:00
Toni Spets
023794ae97 Rework naming convention, fixes some C&C issues 2010-10-23 17:04:01 +03:00
Toni Spets
cc21e924bb Switch to real ddraw for drawing, avoids windows ogl issues 2010-10-23 00:15:11 +03:00
Toni Spets
5669fe3380 Big cleanup, should now correctly release everything 2010-10-17 21:38:40 +03:00
Toni Spets
0011c5272d Very fast rendering on Wine now 2010-10-17 20:11:38 +03:00
Toni Spets
c7c8d954a2 Flip the main surface when Bltted and Unlocked, fixes too fast game 2010-10-17 15:41:52 +03:00
Toni Spets
230c0e04b8 Implement palettes, correct colors now 2010-10-17 14:57:14 +03:00
Toni Spets
c3ed0a00b1 Use game's own window for drawing, initial drawing with grayscale palette 2010-10-17 14:19:48 +03:00
Toni Spets
ad037e718c Initialize OpenGL and clear the screen to blue on update 2010-10-17 10:53:01 +03:00
Toni Spets
f1e2bb8dc5 Fix typo 2010-10-17 09:37:29 +03:00
Toni Spets
0589325de9 Add rect debug prints for surface Blt 2010-10-17 09:36:48 +03:00
Toni Spets
cd4ca202b6 Implement stub SetEntries and GetEntries for surface, suppress Lock and Unlock debug messages 2010-10-17 09:27:45 +03:00
Toni Spets
2d107d58b0 Refactoring 2010-10-17 09:09:30 +03:00
Toni Spets
31070a9662 Set dwCaps in ddraw_GetCaps, Implement stub AddAttachedSurface 2010-10-17 08:44:48 +03:00
Toni Spets
3c257aac86 Use bpp from display mode for surfaces 2010-10-17 00:41:14 +03:00
Toni Spets
15ff8f8e2a Implement GetCaps for ddraw and surface, GetPalette and SetPalette for surface 2010-10-16 23:22:43 +03:00
Toni Spets
4ffda7b73f Implement stub surface Blt, Lock and Unlock 2010-10-16 22:10:25 +03:00
Toni Spets
437b3e9197 Correct stub names for surface 2010-10-16 21:18:59 +03:00
Toni Spets
f10aad6ffb Implement palette and surface with null methods 2010-10-16 21:14:26 +03:00
Toni Spets
53137e4d8d Initial work 2010-10-10 19:41:47 +03:00