1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 14:14:47 +01:00

78 Commits

Author SHA1 Message Date
Toni Spets
c07d836578 Prefix screenshots with game window title 2010-11-21 17:34:04 +02:00
Toni Spets
e019401407 Use ^S instead for screenshots, VK_SNAPSHOT is not sent to WindowProc 2010-11-21 17:11:47 +02:00
Toni Spets
aa69dbbb3e Initial screenshot support for paletted surfaces 2010-11-20 21:08:17 +02:00
Toni Spets
57e7ddf3fc Manual sensitivity scaling option to ini 2010-11-18 17:23:01 +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
d066962617 Add vsync ini option, controls GL_EXT_swap_control, default disabled 2010-11-17 22:12:19 +02:00
Toni Spets
fe6322d165 Move mouse movement stuff to fake_GetCursorPos where it should be 2010-11-17 18:57:22 +02:00
Toni Spets
c940464de2 Remove unused winpos stuff 2010-11-17 18:55:57 +02:00
Toni Spets
f092dd601a Fix cursor release, didn't read MSDN carefully enough 2010-11-17 18:53:39 +02:00
Toni Spets
167342411f Fix alt-tab when fullscreen and remove SendMessage hack 2010-11-16 19:13:59 +02:00
Toni Spets
790b5ab5ea Use a more simple way to detect unlock hotkey 2010-11-16 18:14:02 +02:00
Toni Spets
3e594b10c6 Move some render init stuff out of render main loop 2010-11-16 18:07:59 +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
40f196bc8f Add 'devmode' ini variable for Nyerguds 2010-11-15 20:37:02 +02:00
Toni Spets
924a5254a8 Allow disabling mouse hacks 2010-11-15 20:36:22 +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
3308661c9f Use dynamic thunk table hacking for mouse stuff 2010-11-10 19:25:05 +02:00
Toni Spets
22134748e1 Create default ddraw.ini if it doesn't exist 2010-11-09 17:49:14 +02:00
Toni Spets
b6642edb67 Default to current mode bpp 2010-11-09 17:47:41 +02:00
Toni Spets
23cf107020 Change default maxfps to 120 2010-11-09 17:46:30 +02:00
Toni Spets
872ece5a69 Honor windowed mode again 2010-11-08 22:00:07 +02:00
Toni Spets
6aa54f26f4 Avoid cursor warp on activation 2010-11-08 21:56:40 +02:00
Toni Spets
f9cc483e67 Default to 32 bpp 2010-11-08 21:47:49 +02:00
Toni Spets
ac1d35c6dd Add support for real fullscreen in OpenGL renderer 2010-11-08 21:42:47 +02:00
Toni Spets
17968c433c Fix a recursive call when DirectDraw is created more than once 2010-11-08 21:42:23 +02:00
Toni Spets
88bac67fd5 Fix cursor display 2010-11-08 19:23:39 +02:00
Toni Spets
52ec288169 Allow mouse unlocking in fullscreen (for dual head users mostly) 2010-11-08 19:23:13 +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
85f77578ff Set the window non-topmost so it can be in the background 2010-11-08 18:28:38 +02:00
Toni Spets
4849f3de54 Fix C&C scrolling issue, the screen edges were one pixel off 2010-11-08 17:49:09 +02:00
Toni Spets
7a3086a3df Fix crash race condition in OpenGL renderer 2010-11-08 17:34:33 +02:00
Toni Spets
2cb9affe28 Switch default renderer to OpenGL 2010-11-07 15:56:31 +02:00
Toni Spets
7ff0c285ba Add new ini option, adjmouse, enables mouse sensitivity scaling 2010-11-07 15:54:47 +02:00
Toni Spets
58001d9de3 Add missing ResetEvent to OpenGL renderer 2010-11-07 14:00:02 +02:00
Toni Spets
d267c831de Use real relative cursor, fixes scaling issues 2010-11-07 12:10:09 +02:00
Toni Spets
4b3b799106 Use power-of-two texture in OpenGL, optimize rendering, add bpp selection into ini 2010-11-07 09:59:44 +02:00
Toni Spets
d245af34bb Workaround OpenGL init issue on Windows, hackish 2010-11-06 21:42:37 +02:00
Toni Spets
423c510a17 Add configuration trough ddraw.ini 2010-11-06 21:30:48 +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
9606f1b54f Allow non-windowed mode too 2010-10-27 20:13:32 +03:00
Toni Spets
dba56f02fe Remove sysmenu and close button, they just can't work 2010-10-25 19:58:36 +03:00
Toni Spets
da3f185491 Handle window activation and deactivation a little better, force topmost 2010-10-25 19:37:51 +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
7595f6d7e5 Change unlock combination to Ctrl+Tab which doesn't conflict with any game bindings 2010-10-24 21:51:30 +03:00