Commit Graph

190 Commits

Author SHA1 Message Date
Twinaphex
0d3dc3fc83
Merge pull request #8141 from alphanu1/master
Fix pre-installed resolution bug
2019-02-01 01:25:41 +01:00
alphanu1
b69938078d
Fix pre-installed Resolution bug 2019-02-01 00:22:00 +00:00
twinaphex
d24408730b Cleanups 2019-01-31 15:13:36 +01:00
alphanu1
ccd234465e
fixed restore res bug 2019-01-31 11:56:59 +00:00
alphanu1
9176fc30ee
Fix restore res bug 2019-01-31 11:53:16 +00:00
alphanu1
f23468b8a6 Merge branch 'master' of https://github.com/alphanu1/MME4CRT 2019-01-31 11:18:08 +00:00
alphanu1
0f400b433b Update dispserv_x11.c 2019-01-31 11:17:56 +00:00
alphanu1
86696d3bf3
Update dispserv_x11.c 2019-01-30 23:15:13 +00:00
alphanu1
8344b0d049 Update dispserv_x11.c 2019-01-30 22:48:04 +00:00
alphanu1
ce6a6c0e21 Update dispserv_x11.c 2019-01-30 22:46:29 +00:00
alphanu1
a7814a7601 Update dispserv_x11.c 2019-01-30 22:41:13 +00:00
alphanu1
f510efd64e Update dispserv_x11.c 2019-01-30 22:34:18 +00:00
alphanu1
257dbd825a Update dispserv_x11.c 2019-01-30 22:28:46 +00:00
alphanu1
5afcd020bd update 2019-01-30 22:17:36 +00:00
alphanu1
fac95efaba Update dispserv_x11.c 2019-01-30 22:08:04 +00:00
alphanu1
fa8c9d7049 new method 2019-01-30 21:55:33 +00:00
orbea
e062b98088 Remove trailing blank lines.
find . -type f -exec sed -i '${/^[[:space:]]*$/d;}' {} \+
2019-01-17 19:39:38 -08:00
krzys-h
0cff7eefa7 Initialize COM only once, globally 2019-01-10 16:48:02 +01:00
Brad Parker
d3210b87ae proper init of ITaskbarList 2019-01-10 09:25:02 -05:00
bparker06
c7779ff046
Remove extra CoUninitialize 2019-01-09 18:51:25 -05:00
bparker06
a7a959ccba
always call CoUninitialize if we support the taskbar extensions 2019-01-09 18:49:39 -05:00
krzys-h
9c75b9cb7f Add missing CoUninitialize calls, fix COM initialization problems
It turns out, some of the CoInitialize calls were failing because they
specified conflicting threading models
2019-01-01 17:30:43 +01:00
krzys-h
13517bc226 Fix the taskbar extension not initializing properly
The COM interface is initialized a thousand times everywhere, but
apparently not before the taskbar extension is loaded ;)

Somehow this managed to work sometimes and even return a valid object,
but that object was destroyed soon afterwards causing crashes
2018-12-31 11:17:39 +01:00
orbea
30e5f1dfef Fix gcc -Wformat warnings with C89_BUILD.
gfx/display_servers/dispserv_x11.c: In function ‘x11_display_server_set_resolution’:
gfx/display_servers/dispserv_x11.c:221:76: warning: ISO C90 does not support the ‘%lf’ gnu_printf format [-Wformat=]
       snprintf(xrandr, sizeof(xrandr), "xrandr --newmode \"%dx%d_%0.2f\" %lf %d %d %d %d %d %d %d %d -hsync -vsync", width, height, hz, pixel_clock,
                                                                            ^
gfx/display_servers/dispserv_x11.c:228:76: warning: ISO C90 does not support the ‘%lf’ gnu_printf format [-Wformat=]
       snprintf(xrandr, sizeof(xrandr), "xrandr --newmode \"%dx%d_%0.2f\" %lf %d %d %d %d %d %d %d %d interlace -hsync -vsync", width, height, hz, pixel_clock,
                                                                            ^
2018-12-16 19:15:45 -08:00
twinaphex
4ca7ebc9da Add xrandr implementation for get_output_options 2018-11-27 11:28:24 +01:00
twinaphex
418f28b57a (dispserv_x11.c) Use snprintf instead of sprintf 2018-11-25 17:09:00 +01:00
twinaphex
8b86c49b39 Fix some warnings 2018-11-25 17:06:55 +01:00
twinaphex
0eb8acd766 (Win32 display server) Try to set current resolution 2018-11-24 19:50:25 +01:00
twinaphex
2945d450f3 Cleanups 2018-11-24 19:38:40 +01:00
twinaphex
a561f789e2 Rename switch_resolution to set_resolution 2018-11-24 10:35:32 +01:00
twinaphex
7730828560 Start implementing dropdown list for resolution - Win32 right now at first - now need to make OK button do something 2018-11-24 10:31:41 +01:00
twinaphex
0ae3d3873d Create video_display_server_get_resolution_list 2018-11-24 02:50:04 +01:00
twinaphex
fdb4d2b6ad Add get_resolution_list for Win32 2018-11-24 02:47:22 +01:00
twinaphex
5d8666e226 Only one function calls EnumDisplaySettings now 2018-11-24 02:06:28 +01:00
twinaphex
45e075c8fe Cleanup 2018-11-24 01:54:39 +01:00
Brad Parker
826c77d523 style cleanup 2018-10-02 16:56:40 -04:00
alphanu1
e6b8dcf5b0
Added functions for new CRT SwitchRes options 2018-09-23 20:42:31 +01:00
twinaphex
2c959d8ff1 (Display server) Add get_output 2018-09-17 03:40:17 +02:00
alphanu1
f576266ace
Update dispserv_x11.c 2018-09-10 19:36:57 +01:00
alphanu1
4328c075e8
fixes 2018-09-10 18:25:32 +01:00
alphanu1
6c2d11b414
re introduced snprintf 2018-09-10 18:12:44 +01:00
alphanu1
7c05922d36
xrandr spamming fix
also re introduced snprintf
2018-09-10 18:09:42 +01:00
alphanu1
340515a9fa
Update dispserv_x11.c 2018-09-10 18:08:49 +01:00
alphanu1
d8c36e5bb8
xrandr spamming fix 2018-09-10 17:42:33 +01:00
alphanu1
30d7ef898d
Xrandr sapmming fix 2018-09-10 17:39:52 +01:00
alphanu1
1b4439413c
Update dispserv_x11.c 2018-09-09 12:50:28 +01:00
alphanu1
cf4fff8d31
snprintf broke switching 2018-09-09 11:51:37 +01:00
alphanu1
5c6fc6db7e
New Porch Calc, Matched against an oscilloscope 2018-09-08 22:11:31 +01:00
twinaphex
8a5d092e5b (dispserv_x11.c) Make variable bigger to avoid all the warnings and use snprintf 2018-08-27 16:09:12 +02:00
alphanu1
755a128d95
cast float 2018-07-08 19:15:24 +01:00
alphanu1
045606ce44
Restore refresh fix for windows
The refresh rate is now detect to restore the original desktop resolution.
2018-07-08 18:17:23 +01:00
alphanu1
7c50550fc3
Black screen fix 2018-05-25 12:26:11 +01:00
alphanu1
b4996e6d41
Porch adjust to fix aspect 2018-05-25 10:58:43 +01:00
alphanu1
f99540e9d0
update 2018-05-25 10:56:22 +01:00
alphanu1
a98ce80df0
Porch adjust to fix aspect 2018-05-25 10:49:28 +01:00
alphanu1
dcc87f4557
fix 2018-05-11 22:21:52 +01:00
alphanu1
06d411d6e7
Update dispserv_x11.c 2018-05-10 01:56:39 +01:00
alphanu1
b89b08d1ff
changes to switching method
Added HDMI switching when CRT active, this slowed switching down. So there is also a new method to switch
2018-05-08 15:16:08 +01:00
alphanu1
7dab5b9ae3
Fix screen position for CRT user 2018-05-03 09:42:53 +01:00
alphanu1
d1b834a301
Fix for Linux users exit error when CRT disabled 2018-05-01 21:42:29 +01:00
alphanu1
c9d89e234a
Fix for native low res in Linux 2018-05-01 20:55:24 +01:00
alphanu1
cc1024ddd0
modeline tweaks, better porches 2018-05-01 12:10:32 +01:00
alphanu1
2226dec436
Fix incorrect variable 2018-04-30 18:41:20 +01:00
alphanu1
675da4692e
Moved variable back to the top 2018-04-30 17:54:00 +01:00
alphanu1
9400754a2b
Variable rename 2018-04-30 17:51:28 +01:00
alphanu1
11b7f76526
bug fix with hz switching 2018-04-30 17:14:19 +01:00
alphanu1
f672c7dc5c
Linux / Windows hz bug fix and Linux low res modeline generator fix
when merging Linux CRT refresh rate hz was dealt with in floats for Linux but ints for windows.
2018-04-30 16:49:22 +01:00
Twinaphex
bf64c1cf23
Merge pull request #6655 from alphanu1/master
Linux switching for CRT
2018-04-29 18:41:54 +02:00
alphanu1
896041f468
Add files via upload 2018-04-29 15:47:32 +01:00
alphanu1
16ccbbc75a
Linux switching CRT 2018-04-29 15:44:08 +01:00
alphanu1
a0b46d9a38
Code clean up and Linux switching 2018-04-29 15:38:16 +01:00
alphanu1
a930afce31
Linux switching incorporation 2018-04-29 13:48:08 +01:00
twinaphex
4380bc52bd (MSVC) Buildfixes 2018-04-29 14:47:57 +02:00
alphanu1
1f8540ca9d
Changes to stop unwanted resolution change for non CRT users 2018-04-29 01:41:38 +01:00
alphanu1
b51c8d62e7
Restore resolution fix 2018-04-28 20:52:58 +01:00
twinaphex
070ee2fb40 (dispserv_win32.c) Simplify code 2018-04-18 08:03:34 +02:00
twinaphex
d7d5dfdc73 Add display_server_get_current_resolution 2018-04-17 03:37:56 +02:00
twinaphex
c692f457c2 Add switch_resolution to display_server interface 2018-04-15 19:25:00 +02:00
Brad Parker
43aa977a91 add menu setting to toggle window decorations 2018-02-10 23:46:09 -05:00
twinaphex
534e5bbf34 Make code compatible when compiled as C++ 2018-02-04 21:50:05 +01:00
aliaspider
700fce3bd2 various fixes for CXX_BUILD. 2018-02-04 20:03:27 +01:00
Brad Parker
e2691c425c fix display server memory leaks 2018-01-25 21:48:08 -05:00
aliaspider
9cb896a3d9 (win32) WS_EX_LAYERED drastically decreases performance, so only set it
when needed (when opacity < 100).
2018-01-13 07:53:13 +01:00
Brad Parker
04e6554ad6 don't assume msvc is always compiled in C++ mode 2018-01-01 10:24:04 -05:00
Brad Parker
e62e0c83da win32: Show progress meter on taskbar for downloads (Windows 7 and up) 2018-01-01 02:08:09 -05:00
twinaphex
c0c9764afe Update 2017-12-25 07:36:49 +01:00
Brad Parker
81cd5435a1 x11: enable window transparency 2017-12-16 10:29:30 -05:00
Brad Parker
d53dbbfd4e style nits 2017-12-11 18:50:10 -05:00
Brad Parker
c265c8328c buildfixes 2017-12-11 18:22:40 -05:00
Brad Parker
247b9ea973 add menu setting for window opacity, includes generic display server interface 2017-12-11 18:12:42 -05:00