Commit Graph

199 Commits

Author SHA1 Message Date
Autechre daf6843cd3
Revert "CRTSwitchRes Improvements (removal of system calls)" 2020-09-11 15:15:07 +02:00
twinaphex a21d09addc Revert "(dispserv_x11.c) Cleanups"
This reverts commit e27b314afb.
2020-09-11 15:14:22 +02:00
twinaphex 6fd1485c34 Revert "Turn g_monitor_index into static global"
This reverts commit 65f5544a7e.
2020-09-11 15:14:11 +02:00
twinaphex c6fa9c6720 Revert "Add header"
This reverts commit 1b9c906d69.
2020-09-11 15:14:04 +02:00
twinaphex 85515b239f Revert "Get rid of this unused variable"
This reverts commit bcfd4a3cd6.
2020-09-11 15:13:48 +02:00
twinaphex fb3d8a634b Revert "(dispserv_x11) Cleanups"
This reverts commit 3d09bacb93.
2020-09-11 15:13:42 +02:00
twinaphex 3d09bacb93 (dispserv_x11) Cleanups 2020-09-11 11:37:08 +02:00
twinaphex bcfd4a3cd6 Get rid of this unused variable 2020-09-11 08:22:13 +02:00
twinaphex 1b9c906d69 Add header 2020-09-11 08:20:21 +02:00
twinaphex 65f5544a7e Turn g_monitor_index into static global 2020-09-11 08:15:14 +02:00
twinaphex e27b314afb (dispserv_x11.c) Cleanups 2020-09-11 08:13:33 +02:00
Ben 42c22df72a Code cleanup 2020-09-10 14:44:49 +01:00
alphanu1 28463a9729
CRTSwirchRes Improvements
Removed all system call. Switching now only uses RandR Library.

Resolutions checks to prevent conflicts and crashes.

Closing X11 server now runs a clean up to removes all resolutions installed.
2020-09-10 13:52:31 +01:00
twinaphex ff8463ef86 Cleanup 2020-08-04 03:23:48 +02:00
twinaphex c68cd7851a (dispserv_x11) Cleanups 2020-08-04 03:15:09 +02:00
twinaphex 8eb7c1d226 (Win32) Another buildfix for CRT changes 2020-07-29 04:36:29 +02:00
alphanu1 7e39a4a25c Update dispserv_win32.c 2020-07-28 22:41:56 +01:00
alphanu1 55e3bd3d2d Added ability to adjust porch values
Porches can now be manipulated from the CRTSwitchRes menu
2020-07-28 14:25:38 +01:00
twinaphex da0e87cc63 Add comment 2020-07-07 00:07:38 +02:00
twinaphex 6088c3b301 (win32 display server) Turn function static 2020-07-07 00:06:46 +02:00
Hugo Hromic 2e57a690ce (Win32/DispServer) Improve video resolution switching
* Only switch to a display mode with the same current bit-depth and screen rotation
* Only switch to a display mode with default stretching mode
* Cleanup the function for consistency with other functions
2020-06-21 23:49:26 +01:00
Hugo Hromic 9ec3a5ccad (Win32/DispServer) Improve building of video resolution list
* Only use display modes with the same current bit-depth and screen rotation
* Only use display modes with default stretching mode
* Cleanup the function for consistency with other functions
2020-06-21 23:49:11 +01:00
twinaphex cebc01cb1e C89_BUILD buildfix 2020-05-24 06:54:42 +02:00
Vladimir Serbinenko cfe68a4c2d Fix crash in x11_display_server_get_screen_orientation 2020-05-24 03:38:24 +02:00
twinaphex 3a057d594b MSVC2003 buildfix 2020-05-24 00:05:14 +02:00
twinaphex 84369cf6ba (Win32) Cleanups 2020-05-12 08:49:41 +02:00
twinaphex 7090de541a - Merge runahead/mylist.c into retroarch.c
- General cleanups
2020-02-13 17:26:11 +01:00
twinaphex 32c62a7fe1 Get rid of header include 2020-01-19 05:00:35 +01:00
twinaphex bbd1e6a6a5 Get rid of separate null midi driver file and display server file 2020-01-06 16:06:42 +01:00
alphanu1 df301bcbe7 Updates Porches and Super width
Updates Porches and Super width Calculation
2019-07-11 20:50:33 +01:00
twinaphex 0bb4d0f24f (dispserv_x11.c) Add math.h 2019-06-17 21:07:16 +02:00
twinaphex ee3208ac39 Integrate video_driver.c into retroarch.c 2019-06-17 15:10:22 +02:00
Brad Parker f2e15af6ba griffin: linux buildfixes 2019-05-22 14:07:56 -04:00
twinaphex 0b426b2022 This should hide the CRT SwitchRes option on systems
where it's not supported
2019-05-05 16:33:25 +02:00
Hugo Hromic b10a318f16 (dispserv_x11.c) Silence warning 2019-03-14 16:13:09 +00:00
Brad Parker 4ec71da9a9 x11: using_global_dpy is not restricted to xrandr 2019-02-26 23:37:08 -05:00
Brad Parker 211515ece1 x11: open display ourself if global one is not available (e.g. with SDL) 2019-02-26 20:23:11 -05:00
Hugo Hromic 8984702ba8 (dispserv_x11.c) add missing defines and clean-up code
* Removed redundant and unused variables
* Use multiples of eight for array sizes
* Styled code for consistency with the rest
* Quoted string arguments in shell commands
* Added missing `HAVE_XRANDR` define checks
2019-02-23 20:58:51 +00:00
Brad Parker 97b7512420 restore initial screen orientation on exit for x11/win32 2019-02-23 14:15:36 -05:00
Brad Parker 76ca37aaee x11: implement screen orientation support 2019-02-22 19:13:36 -05:00
Brad Parker 4f0d61a2ac update copyright 2019-02-22 19:13:36 -05:00
Brad Parker 8e14d1dd87 whitespace 2019-02-22 19:13:36 -05:00
Brad Parker 99f4203abf win32: implement screen orientation support 2019-02-21 14:37:24 -05:00
Brad Parker f5f492845f add setting for screen orientation, with initial android implementation 2019-02-21 00:31:55 -05:00
alphanu1 4ded3ad983 Update dispserv_x11.c 2019-02-12 22:41:46 +00:00
alphanu1 45a2b5d9b3 Update dispserv_x11.c 2019-02-12 22:06:50 +00:00
alphanu1 45dae75333 Update dispserv_x11.c
Update dispserv_x11.c

New backporch for super res

Update dispserv_x11.c

Update dispserv_x11.c

Update dispserv_x11.c

update backporch & menu naming

Update menu_setting.c

Update menu_setting.c

Update menu_setting.c

Update menu_setting.c
2019-02-12 22:03:28 +00:00
alphanu1 e11c910c39 Fix native naming after new additions
CRT dynamic width changes

Change menu detection width

Using alternative variables for CRT width and height

see output

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Add files via upload

Update video_crt_switch.c

Update video_crt_switch.c

Update video_display_server.h

Update video_display_server.c

Update dispserv_win32.c

Update dispserv_x11.c

Update menu_cbs_ok.c

X centring on the fly

X centring on the fly

Update dispserv_x11.c

X centring on the fly

Update dispserv_win32.c

Fix dispserv_win32.c

Fix dispserv_win32.c
2019-02-12 21:23:13 +00:00
alphanu1 4dc6cf2fb4
incorporated center adjust for Linux 2019-02-12 09:46:22 +00:00
twinaphex 0dc533d976 (dispserv_x11.c) Get rid of unused variable 2019-02-09 04:11:14 +01:00
orbea 8ff0b14281 Fix C89_BUILD=1. 2019-02-06 09:16:26 -08:00
orbea 28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
alphanu1 f9bb1417b1
compile warning fix 2019-02-01 20:41:01 +00:00
alphanu1 36fd99910a
Update dispserv_x11.c 2019-02-01 20:38:50 +00:00
alphanu1 8ff70ecbbb
Update dispserv_x11.c 2019-02-01 20:34:48 +00:00
alphanu1 5f7de58080
Fix restore resolution for auto detect with single output 2019-02-01 20:30:44 +00:00
alphanu1 b1a20b6ea7
Merge pull request #100 from libretro/master
Update
2019-02-01 20:27:40 +00:00
alphanu1 23800382bf
Update dispserv_x11.c 2019-02-01 20:21:53 +00:00
alphanu1 1d8dd9bb9e
Fix restore resolution for single output autodetect 2019-02-01 20:20:25 +00:00
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