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

113 Commits

Author SHA1 Message Date
Toni Spets
1ac06dc85f Add another OpenGL note 2011-07-05 21:48:51 +03:00
Toni Spets
bfb161f27c Start colors from zero index in GDI, dunno how it worked before 2011-07-05 21:46:12 +03:00
Toni Spets
c69f258e42 Default maxfps to 0, add ogl notices to comments 2011-07-05 21:45:39 +03:00
Toni Spets
4cb7b61cc3 Expose software renderer in ddraw.ini 2011-07-05 21:36:54 +03:00
Toni Spets
2ba4bbf1e2 Make both renderers flip 10 fps when the window is inactive so something is drawn 2011-07-05 21:31:00 +03:00
Toni Spets
233aa94adf Only stop the OpenGL renderer when inactive, fixes black screen issue with GDI 2011-07-05 21:30:08 +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
5192ebc44f Don't allow click to go trough when re-locking the cursor 2011-04-02 21:57:37 +03:00
Toni Spets
ea71fa5590 Use cursorclip to center the cursor when locking 2011-04-02 21:49:15 +03:00
Toni Spets
514f35f302 Use #define for cutscene sizes 2011-04-02 21:37:04 +03:00
Toni Spets
84acbbc0c3 Re-implement software renderer in GDI 2011-04-02 21:18:14 +03:00
Toni Spets
a0c80f3e83 Change palette data_rgb to external RGBQUAD array for software rendering, it was not used before 2011-04-02 21:05:14 +03:00
Toni Spets
6e01d1c722 Initialize cursorclip to game size 2011-04-02 19:40:22 +03:00
Toni Spets
e9436a95c8 Don't capture mouse events outside the client area, messes up window dragging 2011-03-26 08:37:54 +02:00
Toni Spets
d248971e1c Bump up copyright version for 2011 2011-03-24 20:29:45 +02:00
Toni Spets
e048df42d7 Force mouse clip when using vhack 2011-03-24 19:42:36 +02:00
Toni Spets
c073805db3 Add support for C&C video scaling 2011-03-24 19:41:36 +02:00
Toni Spets
a803c12995 Use npot textures if the surface size exceeds 1024x1024 2011-03-24 19:08:27 +02:00
Toni Spets
740730d1fc Fix window size restore issues with Wine 2011-03-24 17:30:22 +02:00
Toni Spets
d42ca86297 Switch to O3 instead of Os, use gcc 3.x to get the fastest build 2011-03-12 23:40:32 +02:00
Toni Spets
e9bce8cdc1 Fix Westwood Chat, should now work 2011-01-10 22:17:29 +02:00
Toni Spets
48bed3d6f1 More StarCraft and generic support, fix mhack permissions 2010-12-12 15:17:25 +02:00
Toni Spets
1ecc6bb248 Fix a few warnings 2010-12-11 18:58:58 +02:00
Toni Spets
a8cdb4e2f2 Support StarCraft's mouse and keyboard events 2010-12-11 14:45:09 +02:00
Toni Spets
fc32b6a6d1 Fix RA edwin not receiving another unknown message 2010-11-26 21:58:03 +02:00
Toni Spets
d7c8cde0a3 640x480 mode cursor boundary hack 2010-11-26 21:44:31 +02:00
Toni Spets
1cba0b66b2 Don't fake cursor position if mhack is disabled, clicking fixed 2010-11-26 21:18:48 +02:00
Toni Spets
020168f725 Send more keyboard events to game, fixes Alt issues 2010-11-26 20:21:22 +02:00
Toni Spets
31ed343a1e Add version information 2010-11-23 20:09:00 +02:00
Toni Spets
9b7fa91afa Fix CnCNet + cnc-ddraw + RA combination 2010-11-23 18:04:04 +02:00
Toni Spets
2d5403338e Fix an issue with cncnet launcher, incorrectly called CloseHandle on loaded module handle 2010-11-23 17:36:12 +02: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
158344348d Pass only the minimal amount of window messages to game wndproc 2010-11-21 17:50:20 +02:00
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