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

117 Commits

Author SHA1 Message Date
FunkyFr3sh
4211df4c29 render to texture test 2018-09-18 01:14:18 +02:00
FunkyFr3sh
9400eb7b75 preparation for more opengl test functions 2018-09-17 21:27:34 +02:00
FunkyFr3sh
4afbbbb5cb add texture test upload to ensure we don't end up with black screens on upload failure 2018-09-16 21:03:46 +02:00
FunkyFr3sh
6cb0b07621 fix for last commit 2018-09-15 16:32:36 +02:00
FunkyFr3sh
ac4f993976 separate opengl render code into multiple functions 2018-09-15 16:12:03 +02:00
FunkyFr3sh
93c240d31f save error state before we reset it on texture creation 2018-09-11 18:08:36 +02:00
FunkyFr3sh
79fe86062f add "sleep" setting for CnC1 2018-09-11 14:20:40 +02:00
FunkyFr3sh
77ac049c41 minimize on WM_AUTORENDERER (windows only) 2018-09-09 23:13:41 +02:00
FunkyFr3sh
f5698f2d0b fix gdi palette bug + refactoring 2018-08-23 00:57:31 +02:00
FunkyFr3sh
084c7b113b use 4 textures to reduce latency 2018-08-22 21:51:38 +02:00
FunkyFr3sh
f1718cfd05 fix crash on game exit (warcraft 2) 2018-08-19 01:01:12 +02:00
FunkyFr3sh
5cf78996a4 fix for automatic stretching - don't go higher than current resolution 2018-08-15 19:49:30 +02:00
FunkyFr3sh
7661a589bb yet another unity/gnome3 hack - Fixes random window repositioning 2018-08-14 15:43:48 +02:00
FunkyFr3sh
6c05064e8d Add WS_MINIMIZEBOX in fullscreen mode too (Fixes alt+tab on Ubuntu 16.04) 2018-08-12 13:12:04 +02:00
FunkyFr3sh
8b6932f6a7 fix for last commit 2018-08-09 11:39:11 +02:00
FunkyFr3sh
b9eab72850 add temporary workaround for ubuntu alt+enter bug until we got a better solution 2018-08-09 11:19:36 +02:00
FunkyFr3sh
366ce012b2 minimize first and then ChangeDisplaySettings (fixes alt+tab on ubuntu) 2018-08-09 09:33:09 +02:00
FunkyFr3sh
068c3af8e1 only lock cursor in WM_ACTIVATE in fullscreen mode - fixes cursor lock bug in ubuntu 2018-08-07 03:57:46 +02:00
FunkyFr3sh
eb93d12e1d first ChangeDisplaySettings and then SetWindowPos - Fixes fullscreen problems with lower resolutions in ubuntu 2018-08-07 02:44:11 +02:00
FunkyFr3sh
422fa30d4a use MoveWindow - fixes a bug where the window always showed up in the top left of the screen 2018-08-07 02:08:40 +02:00
FunkyFr3sh
d88d03b560 new IAT hooking 2018-08-06 09:33:27 +02:00
FunkyFr3sh
a2ec669793 use SetWindowPos rather than ShowWindow trick in WM_AUTORENDER (Works better on WINE) 2018-08-05 00:36:46 +02:00
FunkyFr3sh
1402054259 fix function names 2018-08-03 03:37:23 +02:00
FunkyFr3sh
a4a452a7f2 fix for auto renderer warning not showing 2018-07-22 15:09:51 +02:00
FunkyFr3sh
99406d1d64 force glFinish with vsync 2018-07-16 15:35:45 +02:00
FunkyFr3sh
c5975902ee use multiple textures to reduce latency 2018-07-16 13:51:43 +02:00
FunkyFr3sh
d98cf4f6ea fix for non working vsync 2018-07-16 12:27:41 +02:00
FunkyFr3sh
c1c3ac85ee Revert "minimize window in RestoreDisplayMode"
This reverts commit e4254f7f220c39fda17b025341df211e32f1c6b8.
2018-07-07 09:17:26 +02:00
FunkyFr3sh
e4254f7f22 minimize window in RestoreDisplayMode 2018-07-07 02:43:42 +02:00
FunkyFr3sh
30b430dbc7 use different workaround for macOS bug 2018-07-06 00:32:47 +02:00
FunkyFr3sh
75c25f515b temporary workaround for macOS bug with crossover wine 14.1 2018-07-05 23:51:27 +02:00
FunkyFr3sh
2e6a264738 call DrawText before CounterStart 2018-07-05 19:41:48 +02:00
FunkyFr3sh
42fb8577a4 only refresh the screen when the primary palette is changed 2018-07-05 19:32:33 +02:00
FunkyFr3sh
a40392e11a only update textures if necessary 2018-07-04 23:27:12 +02:00
FunkyFr3sh
4c2272a54e add support for DDBLT_COLORFILL 2018-07-03 21:05:58 +02:00
FunkyFr3sh
ff7267d044 try to use a single memcpy if possible - adds stretching support (not used in C&C games though) 2018-07-03 20:54:05 +02:00
FunkyFr3sh
897fdb5bbb allocate memory for surfaces on CreateDIBSection failure 2018-07-01 21:27:44 +02:00
FunkyFr3sh
0b12de90e2 fix for fullscreen bug with auto renderer 2018-06-26 18:02:03 +02:00
FunkyFr3sh
4ea226b743 check for errors in render loop 2018-06-26 14:09:47 +02:00
FunkyFr3sh
7108f2af7a on screen debug 2018-06-26 14:06:02 +02:00
FunkyFr3sh
fa54189259 show opengl unavailable warning 2018-06-22 04:27:34 +02:00
FunkyFr3sh
f5b661dc1b workaround for a bug where sometimes a background window steals the focus 2018-06-10 23:25:30 +02:00
FunkyFr3sh
1d83797a48 tweak fallback solution for possible ClipCursor failure 2018-06-02 13:21:00 +02:00
FunkyFr3sh
ad07b46822 fallback solution for possible ClipCursor failure 2018-06-02 12:59:54 +02:00
FunkyFr3sh
203cee4d01 add QueryPerformanceCounter debug code 2018-05-31 03:38:33 +02:00
FunkyFr3sh
4fbd905276 only enable GL_TEXTURE_2D if no shader available 2018-05-24 06:25:11 +02:00
FunkyFr3sh
52bc5ad23f prevent switching to GDI on core profile 2018-05-24 05:21:24 +02:00
FunkyFr3sh
90758a08c8 move wglSwapIntervalEXT to opengl.c 2018-05-23 02:03:45 +02:00
FunkyFr3sh
5ed60e662e remove redundant stuff from render loop 2018-05-23 01:11:40 +02:00
FunkyFr3sh
3fcc17b336 allow GL_RGBA8 without autorenderer to raise compatibility 2018-05-22 04:23:05 +02:00