Commit graph

166 commits

Author SHA1 Message Date
FunkyFr3sh
80563db9db use ticklength * 2 (just making sure...) 2018-11-09 20:58:48 +01:00
FunkyFr3sh
bdb5675459 make maxgameticks working via surface unlock for atomic bomberman 2018-11-09 20:39:45 +01:00
FunkyFr3sh
0e3e7659cb save window position on wine 2018-11-09 00:30:29 +01:00
FunkyFr3sh
c8c86f8282 remember window state 2018-11-07 23:28:19 +01:00
FunkyFr3sh
e14e1e74c5 remove sleep in setdisplaymode 2018-11-07 17:42:08 +01:00
FunkyFr3sh
b69e89d1de don't override maintain aspect ratio option globally when fullscreen resolution isn't supported 2018-11-05 20:48:42 +01:00
FunkyFr3sh
14ea479797 some more wine tweaks to improve performance on minimize 2018-11-05 14:16:30 +01:00
FunkyFr3sh
e59043f43f fix resizable window on wine 2018-11-05 14:05:32 +01:00
FunkyFr3sh
72a86a9f78 make alt+enter working with a resized window 2018-11-04 19:35:38 +01:00
FunkyFr3sh
d68cb86430 addref fix 2018-11-02 03:20:36 +01:00
FunkyFr3sh
8ba6185965 fix for carmageddon 2 2018-11-02 02:21:16 +01:00
FunkyFr3sh
7b55df3ed7 remove screenshot hotkey 2018-11-01 20:14:33 +01:00
FunkyFr3sh
d56240e178 make windowed+stretching working for a lot of non-cnc games 2018-11-01 20:09:42 +01:00
FunkyFr3sh
0e6d415f63 remove sleep hack and add a smarter game speed limiter that takes the games performance into account 2018-10-31 11:48:41 +01:00
FunkyFr3sh
82b245228c add dummy callback + new preset 2018-10-30 19:38:32 +01:00
FunkyFr3sh
90a31e1daf limit resolutions in EnumDisplayModes to prevent crashes 2018-10-30 17:54:14 +01:00
FunkyFr3sh
429389af07 lock mouse in windowed mode if resolution changed during runtime 2018-10-30 14:35:13 +01:00
FunkyFr3sh
d79b2086cc make sure only 8bit video modes are used + add some more debugging code 2018-10-30 08:29:19 +01:00
FunkyFr3sh
bde5fcd70b remove unused code + add some more presets 2018-10-29 05:47:01 +01:00
FunkyFr3sh
5e121fd76b fix for maintain aspect ratio 2018-10-28 13:00:50 +01:00
FunkyFr3sh
ff5fcec431 raise version number 2018-10-28 12:41:08 +01:00
FunkyFr3sh
0bca0877fb restrict size via WM_SIZING 2018-10-28 12:38:57 +01:00
FunkyFr3sh
30618755a1 don't use WM_GETMINMAXINFO to prevent possible bugs later on 2018-10-28 08:01:31 +01:00
FunkyFr3sh
a07fec08e0 maintain aspect ratio on resize 2018-10-28 06:46:35 +01:00
FunkyFr3sh
d70104c610 force redraw 2018-10-27 17:39:43 +02:00
FunkyFr3sh
5bcf6b2a97 resizable window 2018-10-27 16:44:09 +02:00
FunkyFr3sh
7f0eef570b add partial support for DDBLT_KEYSRC 2018-10-27 09:23:00 +02:00
FunkyFr3sh
5477e5139a fixes resolution changes during run time with d3d9 and opengl renderers 2018-10-27 02:28:07 +02:00
FunkyFr3sh
202e4eb869 improve logging 2018-10-26 10:34:45 +02:00
FunkyFr3sh
70492f6412 highlight unsupported functions (for easier DebugString real-time filtering) 2018-10-26 07:24:38 +02:00
FunkyFr3sh
cbc66c3bc2 implement EnumDisplayModes and BltFast - Fixes DDBLT_COLORFILL with NULL rect - support resolution changes during runtime (AoE2) 2018-10-26 05:27:10 +02:00
FunkyFr3sh
3fa02ac34d support for loading/saving settings for multiple games via a single settings file 2018-10-25 07:03:01 +02:00
FunkyFr3sh
67f7f2bfe6 move detect_cutscene into main.c since it's used by all renderers 2018-10-25 04:15:53 +02:00
FunkyFr3sh
b9eda0f6af allow Sleep hack with GDI renderer 2018-10-25 04:05:44 +02:00
FunkyFr3sh
4fe2bf7c99 screenshots in .bmp format without libpng 2018-10-24 09:01:24 +02:00
FunkyFr3sh
35ac845688 use run-time dynamic linking for opengl32.dll to prevent random bugs where the game fails to start 2018-10-24 04:21:22 +02:00
FunkyFr3sh
21500ca591 make sure d3ddev is not null 2018-10-15 03:31:57 +02:00
FunkyFr3sh
59f0f4d9b2 add a header file for d3d9 renderer 2018-10-15 00:57:05 +02:00
FunkyFr3sh
28c9886dbe fix d3d9 multi threading 2018-10-15 00:01:31 +02:00
FunkyFr3sh
f70a085f08 make d3d9 the default on every version of windows 2018-10-12 16:50:18 +02:00
FunkyFr3sh
f0b280485f return 0 on WM_D3D9FULLSCREEN 2018-10-09 09:33:17 +02:00
FunkyFr3sh
42d13edb92 fix d3d9 automatic cursor lock on alt+tab 2018-10-09 09:16:00 +02:00
FunkyFr3sh
c2c60683b2 no ChangeDisplaySettings on alt+enter with d3d9 2018-10-08 10:17:26 +02:00
FunkyFr3sh
04e063252c don't change display settings, let d3d9 do it 2018-10-08 08:42:08 +02:00
FunkyFr3sh
bbe8fa11d8 release d3d9 on alt+enter 2018-10-07 16:49:35 +02:00
FunkyFr3sh
12655fa5a3 stop drawing and release d3d9 on alt+tab 2018-10-07 13:42:32 +02:00
FunkyFr3sh
1b23e1d42b use d3d9 only on vista and xp 2018-10-05 12:54:53 +02:00
FunkyFr3sh
7bffd78db5 opengl / d3d9 windowed-fullscreen aka borderless 2018-10-05 10:01:38 +02:00
FunkyFr3sh
519f499d23 improve d3d9 auto renderer check 2018-10-04 06:27:03 +02:00
FunkyFr3sh
ff331d32f1 tweak d3d9 alt+enter 2018-10-03 15:10:57 +02:00
FunkyFr3sh
1a6de69da4 switch to windowed on minimize and go back to fullscreen exclusive on restore - makes alt+tab failsafe 2018-10-03 14:54:47 +02:00
FunkyFr3sh
24b0e5cf24 fix d3d9 alt+enter - use d3d9 on xp/vista/7 even with dwm enabled 2018-10-03 09:51:15 +02:00
FunkyFr3sh
c0a26ce858 enables fullscreen exclusive mode for d3d9 2018-10-03 08:50:00 +02:00
FunkyFr3sh
29478d6e25 remove legacy opengl code 2018-10-02 15:58:30 +02:00
FunkyFr3sh
4ed8eed654 don't use d3d9 on wine 2018-10-02 01:59:14 +02:00
FunkyFr3sh
0976e87304 fix ddraw.ini description 2018-10-01 13:11:52 +02:00
FunkyFr3sh
88adfe633d use d3d9 on xp/vista/7 2018-10-01 11:50:56 +02:00
FunkyFr3sh
66438e5a2e update ddraw.ini 2018-09-29 05:33:14 +02:00
FunkyFr3sh
99ce582121 experimental Direct3D 9 renderer 2018-09-28 22:40:44 +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
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
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
d98cf4f6ea fix for non working vsync 2018-07-16 12:27:41 +02:00
FunkyFr3sh
c1c3ac85ee Revert "minimize window in RestoreDisplayMode"
This reverts commit e4254f7f22.
2018-07-07 09:17:26 +02:00
FunkyFr3sh
e4254f7f22 minimize window in RestoreDisplayMode 2018-07-07 02:43:42 +02:00
FunkyFr3sh
0b12de90e2 fix for fullscreen bug with auto renderer 2018-06-26 18:02:03 +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
fd939bfff4 choose best renderer automatically 2018-05-18 16:18:34 +02:00
FunkyFr3sh
8ba9b570fd add shader settings to ddraw.ini 2018-05-14 14:53:54 +02:00
FunkyFr3sh
87450e320f preliminary libretro GLSL shader support https://github.com/libretro/glsl-shaders 2018-05-12 12:28:07 +02:00
FunkyFr3sh
0e511f1a7d set maxfps to 125 for opengl by default 2018-05-10 14:57:12 +02:00
FunkyFr3sh
b053bc377e OpenGL: add 8bit palette conversion shader for better performance - remove pixel buffer objects - temporary remove scaling filters (need to be replaced with shaders) 2018-05-09 05:09:57 +02:00
FunkyFr3sh
5a2748f3d1 add visual studio project files 2018-05-06 10:52:06 +02:00
FunkyFr3sh
e65c03c607 fix vhack for cnc1 2018-03-23 03:21:16 +01:00
FunkyFr3sh
4114b96766 redraw if viewport x/y are not 0 2018-03-23 00:52:08 +01:00
FunkyFr3sh
4725035462 force redraw with boxing/maintas 2018-03-23 00:35:19 +01:00
FunkyFr3sh
f8a3498a5a add devmode to config file 2018-03-19 16:12:50 +01:00
FunkyFr3sh
47026bf011 fix for alt+tab freeze (carmageddon) 2018-03-19 02:27:55 +01:00
FunkyFr3sh
b2bacb95c3 optional fake GetCursorPos for carmageddon 2018-03-19 00:32:13 +01:00
FunkyFr3sh
5d31c5db48 enable maintain aspect ratio on ChangeDisplaySettings failure 2018-03-16 18:57:59 +01:00
FunkyFr3sh
9ce87449ec improve boxing/maintas cursor lock/unlock - fix automatic mouse sensitivity scaling with boxing/maintas 2018-03-15 20:49:27 +01:00
FunkyFr3sh
65525e14dd boxing and maintain aspect ratio now also working with opengl 2018-03-14 15:12:56 +01:00
FunkyFr3sh
ecaaf8e647 maintain aspect ratio 2018-03-14 14:02:04 +01:00
FunkyFr3sh
fcdc863ffa reinvent adjmouse 2018-03-11 21:23:22 +01:00
FunkyFr3sh
b579a258f8 fix mouse_lock bug 2018-03-11 11:43:43 +01:00
FunkyFr3sh
c141dc478f bump version for realse 1.1.5.0 2018-03-11 10:34:46 +01:00
FunkyFr3sh
308413323c SetProcessDpiAwareness 2018-03-10 10:19:54 +01:00
FunkyFr3sh
ae1b46bce2 fix maximize button 2018-03-09 19:51:23 +01:00
FunkyFr3sh
241ccad68c fix for bad cursor position on alt+enter 2018-03-09 19:11:19 +01:00