Commit graph

  • 227bbc8280 keep trying to ReleaseDirect3D in case the first try fails FunkyFr3sh 2018-10-14 20:09:44 +02:00
  • f70a085f08 make d3d9 the default on every version of windows FunkyFr3sh 2018-10-12 16:50:18 +02:00
  • 8a0a56bffa add missing BitsPerPixel check FunkyFr3sh 2018-10-09 11:46:40 +02:00
  • f0b280485f return 0 on WM_D3D9FULLSCREEN FunkyFr3sh 2018-10-09 09:33:17 +02:00
  • 42d13edb92 fix d3d9 automatic cursor lock on alt+tab FunkyFr3sh 2018-10-09 09:16:00 +02:00
  • bbf2b0db12 improve error checks FunkyFr3sh 2018-10-09 08:56:58 +02:00
  • 56631c8ed3 move Sleep(500) up FunkyFr3sh 2018-10-08 14:11:58 +02:00
  • 83fab457d1 reduce delay FunkyFr3sh 2018-10-08 13:48:55 +02:00
  • c2c60683b2 no ChangeDisplaySettings on alt+enter with d3d9 FunkyFr3sh 2018-10-08 10:17:26 +02:00
  • 04e063252c don't change display settings, let d3d9 do it FunkyFr3sh 2018-10-08 08:42:08 +02:00
  • bbe8fa11d8 release d3d9 on alt+enter FunkyFr3sh 2018-10-07 16:49:35 +02:00
  • 12655fa5a3 stop drawing and release d3d9 on alt+tab FunkyFr3sh 2018-10-07 13:42:32 +02:00
  • 36c14bd857 separate d3d9 and opengl shaders into 2 headers FunkyFr3sh 2018-10-06 12:24:43 +02:00
  • a741fa9dca fix palette bug FunkyFr3sh 2018-10-06 05:02:53 +02:00
  • 1b23e1d42b use d3d9 only on vista and xp FunkyFr3sh 2018-10-05 12:54:53 +02:00
  • 7bffd78db5 opengl / d3d9 windowed-fullscreen aka borderless FunkyFr3sh 2018-10-05 10:01:38 +02:00
  • f1829bf760 bump version for release 1.2.0.0 FunkyFr3sh 2018-10-04 07:05:52 +02:00
  • 519f499d23 improve d3d9 auto renderer check FunkyFr3sh 2018-10-04 06:27:03 +02:00
  • ff331d32f1 tweak d3d9 alt+enter FunkyFr3sh 2018-10-03 15:10:57 +02:00
  • 1a6de69da4 switch to windowed on minimize and go back to fullscreen exclusive on restore - makes alt+tab failsafe FunkyFr3sh 2018-10-03 14:54:47 +02:00
  • 9cbd2de62f force at least 5 FPS to avoid problems in the menus FunkyFr3sh 2018-10-03 12:12:11 +02:00
  • 24b0e5cf24 fix d3d9 alt+enter - use d3d9 on xp/vista/7 even with dwm enabled FunkyFr3sh 2018-10-03 09:51:15 +02:00
  • c0a26ce858 enables fullscreen exclusive mode for d3d9 FunkyFr3sh 2018-10-03 08:50:00 +02:00
  • d693217fc8 bump version FunkyFr3sh 2018-10-02 16:29:40 +02:00
  • 848f996f9b try to use 1.30 shader first and use 1.10 shader as fallback solution FunkyFr3sh 2018-10-02 16:26:37 +02:00
  • 29478d6e25 remove legacy opengl code FunkyFr3sh 2018-10-02 15:58:30 +02:00
  • b2cf1b0a55 move pixel shader into header file FunkyFr3sh 2018-10-02 12:19:46 +02:00
  • ebae1add37 remove duplicate debug code FunkyFr3sh 2018-10-02 11:38:38 +02:00
  • fa6f9e197e separate into multiple functions FunkyFr3sh 2018-10-02 03:25:34 +02:00
  • 15686ce5d3 don't delete resources on reset since they're all managed FunkyFr3sh 2018-10-02 02:27:58 +02:00
  • 4ed8eed654 don't use d3d9 on wine FunkyFr3sh 2018-10-02 01:59:14 +02:00
  • 0976e87304 fix ddraw.ini description FunkyFr3sh 2018-10-01 13:11:52 +02:00
  • 962ee35adc add d3d9 vhack FunkyFr3sh 2018-10-01 13:10:10 +02:00
  • 88adfe633d use d3d9 on xp/vista/7 FunkyFr3sh 2018-10-01 11:50:56 +02:00
  • ae14e3d9f0 use square POT textures for better compatibility FunkyFr3sh 2018-09-30 09:23:00 +02:00
  • f701a18139 bump version FunkyFr3sh 2018-09-30 07:45:24 +02:00
  • 7f23ad5563 try to use D3DCREATE_HARDWARE_VERTEXPROCESSING | D3DCREATE_PUREDEVICE for better performance FunkyFr3sh 2018-09-30 07:29:51 +02:00
  • abb88f456d direct3d auto renderer tweaks FunkyFr3sh 2018-09-30 03:06:45 +02:00
  • 1d43b112c9 switch to gdi on failure FunkyFr3sh 2018-09-30 01:02:48 +02:00
  • 6981b51973 bump version FunkyFr3sh 2018-09-29 05:33:35 +02:00
  • 66438e5a2e update ddraw.ini FunkyFr3sh 2018-09-29 05:33:14 +02:00
  • 482768e0ad viewport tweaks again FunkyFr3sh 2018-09-29 05:19:41 +02:00
  • dc940a8ea3 some more viewport tweaks FunkyFr3sh 2018-09-29 04:58:21 +02:00
  • b6bd5e41dd Fixes maintain aspect ratio / boxing (direct3d 9) FunkyFr3sh 2018-09-29 04:44:28 +02:00
  • 41f43ed090 direct3d 9 vsync FunkyFr3sh 2018-09-28 23:10:58 +02:00
  • 99ce582121 experimental Direct3D 9 renderer FunkyFr3sh 2018-09-28 22:40:44 +02:00
  • 2afe07189c check if surface was created on DDBLT_COLORFILL (caused a crash on ts-ddraw, might not be needed on cnc-ddraw) FunkyFr3sh 2018-09-25 02:01:55 +02:00
  • 4fe107c991 adjust alignment in case width is not divisible 4 - fixes resolutions such as 1366*768 FunkyFr3sh 2018-09-25 01:56:15 +02:00
  • 5bbf63a025 fix for last commit FunkyFr3sh 2018-09-18 01:16:23 +02:00
  • 4211df4c29 render to texture test FunkyFr3sh 2018-09-18 01:14:18 +02:00
  • 9400eb7b75 preparation for more opengl test functions FunkyFr3sh 2018-09-17 21:27:34 +02:00
  • 4afbbbb5cb add texture test upload to ensure we don't end up with black screens on upload failure FunkyFr3sh 2018-09-16 21:03:46 +02:00
  • 6cb0b07621 fix for last commit FunkyFr3sh 2018-09-15 16:32:36 +02:00
  • ac4f993976 separate opengl render code into multiple functions FunkyFr3sh 2018-09-15 16:12:03 +02:00
  • 93c240d31f save error state before we reset it on texture creation FunkyFr3sh 2018-09-11 18:08:36 +02:00
  • 79fe86062f add "sleep" setting for CnC1 FunkyFr3sh 2018-09-11 14:20:40 +02:00
  • 77ac049c41 minimize on WM_AUTORENDERER (windows only) FunkyFr3sh 2018-09-09 23:13:41 +02:00
  • f5698f2d0b fix gdi palette bug + refactoring FunkyFr3sh 2018-08-23 00:57:31 +02:00
  • 084c7b113b use 4 textures to reduce latency FunkyFr3sh 2018-08-22 21:51:38 +02:00
  • f1718cfd05 fix crash on game exit (warcraft 2) FunkyFr3sh 2018-08-19 01:01:12 +02:00
  • f7cdde52ee bump version for release 1.1.9.0 1.1.9.0 FunkyFr3sh 2018-08-18 20:28:24 +02:00
  • 5cf78996a4 fix for automatic stretching - don't go higher than current resolution FunkyFr3sh 2018-08-15 19:49:30 +02:00
  • 7661a589bb yet another unity/gnome3 hack - Fixes random window repositioning FunkyFr3sh 2018-08-14 15:43:48 +02:00
  • 5188a68964 bump version FunkyFr3sh 2018-08-12 13:23:00 +02:00
  • 6c05064e8d Add WS_MINIMIZEBOX in fullscreen mode too (Fixes alt+tab on Ubuntu 16.04) FunkyFr3sh 2018-08-12 13:12:04 +02:00
  • 623ee8bd1d bump version FunkyFr3sh 2018-08-09 11:58:17 +02:00
  • 8b6932f6a7 fix for last commit FunkyFr3sh 2018-08-09 11:39:11 +02:00
  • b9eab72850 add temporary workaround for ubuntu alt+enter bug until we got a better solution FunkyFr3sh 2018-08-09 11:19:36 +02:00
  • 366ce012b2 minimize first and then ChangeDisplaySettings (fixes alt+tab on ubuntu) FunkyFr3sh 2018-08-09 09:33:09 +02:00
  • 068c3af8e1 only lock cursor in WM_ACTIVATE in fullscreen mode - fixes cursor lock bug in ubuntu FunkyFr3sh 2018-08-07 03:57:46 +02:00
  • eb93d12e1d first ChangeDisplaySettings and then SetWindowPos - Fixes fullscreen problems with lower resolutions in ubuntu FunkyFr3sh 2018-08-07 02:44:11 +02:00
  • 422fa30d4a use MoveWindow - fixes a bug where the window always showed up in the top left of the screen FunkyFr3sh 2018-08-07 02:08:40 +02:00
  • d88d03b560 new IAT hooking FunkyFr3sh 2018-08-06 09:33:27 +02:00
  • a2ec669793 use SetWindowPos rather than ShowWindow trick in WM_AUTORENDER (Works better on WINE) FunkyFr3sh 2018-08-05 00:36:46 +02:00
  • b8ee01684f disable optimizations to prevent crashes in cncra snap FunkyFr3sh 2018-08-03 04:54:00 +02:00
  • 1402054259 fix function names FunkyFr3sh 2018-08-03 03:37:23 +02:00
  • a4a452a7f2 fix for auto renderer warning not showing FunkyFr3sh 2018-07-22 15:09:51 +02:00
  • 99406d1d64 force glFinish with vsync FunkyFr3sh 2018-07-16 15:35:45 +02:00
  • c5975902ee use multiple textures to reduce latency FunkyFr3sh 2018-07-16 13:51:43 +02:00
  • d98cf4f6ea fix for non working vsync FunkyFr3sh 2018-07-16 12:27:41 +02:00
  • 9d9ced47f4 bump version FunkyFr3sh 2018-07-12 01:20:36 +02:00
  • c1c3ac85ee Revert "minimize window in RestoreDisplayMode" 1.1.8.0 FunkyFr3sh 2018-07-07 09:17:26 +02:00
  • e4254f7f22 minimize window in RestoreDisplayMode FunkyFr3sh 2018-07-07 02:43:42 +02:00
  • 30b430dbc7 use different workaround for macOS bug FunkyFr3sh 2018-07-06 00:32:47 +02:00
  • 75c25f515b temporary workaround for macOS bug with crossover wine 14.1 FunkyFr3sh 2018-07-05 23:51:27 +02:00
  • 2e6a264738 call DrawText before CounterStart FunkyFr3sh 2018-07-05 19:41:48 +02:00
  • 42fb8577a4 only refresh the screen when the primary palette is changed FunkyFr3sh 2018-07-05 19:32:33 +02:00
  • a40392e11a only update textures if necessary FunkyFr3sh 2018-07-04 23:27:12 +02:00
  • 4c2272a54e add support for DDBLT_COLORFILL FunkyFr3sh 2018-07-03 21:05:58 +02:00
  • ff7267d044 try to use a single memcpy if possible - adds stretching support (not used in C&C games though) FunkyFr3sh 2018-07-03 20:54:05 +02:00
  • 897fdb5bbb allocate memory for surfaces on CreateDIBSection failure FunkyFr3sh 2018-07-01 21:27:44 +02:00
  • 0b12de90e2 fix for fullscreen bug with auto renderer FunkyFr3sh 2018-06-26 18:02:03 +02:00
  • 4ea226b743 check for errors in render loop FunkyFr3sh 2018-06-26 14:09:47 +02:00
  • 7108f2af7a on screen debug FunkyFr3sh 2018-06-26 14:06:02 +02:00
  • fa54189259 show opengl unavailable warning FunkyFr3sh 2018-06-22 04:27:34 +02:00
  • f5b661dc1b workaround for a bug where sometimes a background window steals the focus FunkyFr3sh 2018-06-10 23:25:30 +02:00
  • 1d83797a48 tweak fallback solution for possible ClipCursor failure FunkyFr3sh 2018-06-02 13:21:00 +02:00
  • ad07b46822 fallback solution for possible ClipCursor failure FunkyFr3sh 2018-06-02 12:59:54 +02:00
  • 203cee4d01 add QueryPerformanceCounter debug code FunkyFr3sh 2018-05-31 03:38:33 +02:00
  • 038300ef2b bump version for release 1.1.7.0 FunkyFr3sh 2018-05-25 22:35:58 +02:00