Commit Graph

1402 Commits

Author SHA1 Message Date
twinaphex 4d7b627421 Get rid of video_info dependency for set_video_mode 2020-03-06 22:58:12 +01:00
twinaphex e20151a048 Get rid of video_info struct for swap_buffers too 2020-03-06 22:29:51 +01:00
twinaphex 68664fdf1d update_title - we don't need video_info 2020-03-06 22:11:44 +01:00
twinaphex 4aae293e3d Remove is_shutdown from check_window 2020-03-06 20:29:31 +01:00
twinaphex bd5f151077 Settings cleanups 2020-03-06 02:52:21 +01:00
twinaphex a7d679d391 Rename WndProcGL to WndProcWGL 2020-03-05 18:45:41 +01:00
twinaphex 0ef1b342e4 settings Cleanups 2020-03-02 20:10:24 +01:00
natinusala f00fb6d1ea odroidgo2: patched DRM driver 2020-02-27 10:22:51 +01:00
natinusala a75059f94b odroidgo2: add skeleton 2020-02-27 10:22:51 +01:00
twinaphex 1b0ab1c05f Cleanups 2020-02-21 07:34:53 +01:00
jdgleaver b1773cc73b (Switch) Report correct (approximate) DPI in 'docked' mode 2020-02-12 14:25:49 +00:00
twinaphex 880391d0c5 (libnx) Try to silence warnings 2020-02-10 12:36:11 +01:00
twinaphex d48d4385d9 (Wayland) Silence warning 2020-01-15 08:48:13 +01:00
twinaphex 0923985516 (GL/WGL) This regression caused cores that required GL to fail
because it would try to erroneously load GLESv2.dll instead of
OpenGL32.dll
2020-01-09 19:26:53 +01:00
twinaphex fa7859ad13 (Gfx drivers context) Cleanup EGL calls 2020-01-06 18:27:18 +01:00
twinaphex 6e0971fc61 (EGL) Call EGL common calls 2020-01-04 19:58:57 +01:00
twinaphex 063986a4b3 (ANGLE) Angle gets separate EXE name 2020-01-04 19:05:23 +01:00
jovonna decd374c15 Initial port to dingux platform 2020-01-04 12:20:03 -05:00
twinaphex 3e1f56d57f Change function signature of win32_has_focus 2020-01-04 15:49:23 +01:00
twinaphex 91baea201a Change function signature of win32_show_cursor 2020-01-04 15:40:02 +01:00
twinaphex 53dbd69751 (EGL) Create egl_bind_api 2020-01-04 15:09:42 +01:00
GH Cao 090919490a UWP: Remove uwp_egl_create_surface
Because of 0e2265, this is not doing anything special anymore.
Remove it entirely and use common EGL surface creation instead.
2020-01-03 06:07:05 +08:00
Themaister 15ffffa835 Android/Vulkan: Recreate swapchain on orientation change.
ANativeWindow getWidth/Height does not detect any changes when using
Vulkan, so use the old onContentRectChanged callback to get notified
when size changed. Use those values instead when figuring out how large
swapchain to create.

Tested trivially on Galaxy S9+ Exynos model.
2019-12-15 16:46:41 +01:00
driver1998 105fadd668 [ANGLE] Add HAVE_ANGLE 2019-12-06 15:43:19 +08:00
driver1998 bfe167fae8 [UWP] Add ANGLE context 2019-12-06 13:24:18 +08:00
driver1998 7cbdd845ad [Win32] Add ANGLE context 2019-12-06 13:24:17 +08:00
Twinaphex 002f2ab6e7
Merge pull request #9801 from cmitu/kms-video-mode-selection
KMSDRM: better detection for the current video mode
2019-12-05 23:39:02 +01:00
cmitu 3953659901 KMSDRM: better detection for the current video mode 2019-12-01 06:45:43 +00:00
Jean-André Santoni ba2c870d95
Allow building using make on OSX 2019-11-30 12:37:58 +07:00
twinaphex 861379d8e3 Revert code in hopes iOS works again 2019-11-20 06:25:40 +01:00
Twinaphex d2d240ecf5 (iOS) Should fix iOS build problems 2019-11-20 02:58:17 +01:00
Twinaphex 81c020d300 Replace g_instance with CocoaView get 2019-11-20 02:24:03 +01:00
twinaphex e3506ed06b Move nsview_get_ptr to cocoa_common 2019-11-20 02:24:03 +01:00
Twinaphex 387e18b528 cocoagl_gfx_ctx_set_video_mode - go through [CocoaView get] here 2019-11-20 02:24:03 +01:00
twinaphex 964fcda79a Move glkitview_init to cocoa_common.m 2019-11-20 02:24:02 +01:00
Jean-André Santoni 8e028f4db3
Remove useless HAVE_COCOA_METAL ifdef 2019-11-19 14:50:21 +07:00
twinaphex 29ced2a72f Simplify cocoagl_gfx_ctx_get_video_size somewhat 2019-11-19 08:26:12 +01:00
Twinaphex c7ce2c7053 Fix Xcode issue 2019-11-19 05:54:01 +01:00
Jean-André Santoni d5a5380e6d
Fix building with make on OSX 2019-11-19 11:38:27 +07:00
Rinnegatamante 616759ed8c [VITA] Implement check_window. 2019-11-13 11:19:51 +01:00
Rinnegatamante 637319c938 [VITA] Implement swap_interval in vita video driver context. 2019-11-13 09:57:03 +01:00
Rinnegatamante bed9847b48 [VITA] Hijacking wrong positioning for UI elements. 2019-11-12 19:06:18 +01:00
Rinnegatamante f3ca57e6f0 [VITA] Add vita video driver context. 2019-11-12 16:33:36 +01:00
Rinnegatamante 6b7673f806 [VITA] Fixing gl1 video driver crashes. 2019-11-12 15:37:37 +01:00
Rinnegatamante 1533d618e5 [VITA] Allow usage of null context with gl1. 2019-11-12 13:50:14 +01:00
Rinnegatamante 02c35441d6 Revert to old x context. 2019-10-16 18:29:17 +02:00
Rinnegatamante d1a74e1b96 Fix for crash on Linux. 2019-10-15 09:07:15 +02:00
Twinaphex 7bed40d17b
Merge pull request #9547 from Rinnegatamante/videodrivers
Graceful switch between video drivers.
2019-10-12 14:21:33 +02:00
twinaphex 221df13250 Cleanups/warning fixes - compilation fix for OSX PPC 2019-10-05 18:38:17 +02:00
twinaphex eed44eea9c Cache this string too 2019-10-04 14:27:09 +02:00
twinaphex 1788042c9e (Android) dpi_get_density - cache one variable to avoid excessive
system_property_get querying
2019-10-04 14:22:10 +02:00
Rinnegatamante 453781af9c Graceful switch between video drivers. 2019-10-03 17:45:59 +02:00
twinaphex c5b3428408 Add sdl2_common.c/.h 2019-09-22 12:40:40 +02:00
twinaphex efdc07ab10 (Wayland) update_title function - simplify this function a bit 2019-09-22 12:14:49 +02:00
Twinaphex 2414224df8 (Cocoa) It's only necessary to set the display server userdata for
set_video_mode
2019-09-22 11:29:58 +02:00
Twinaphex 511f43d5cf Move it to cocoa_gl_ctx.m 2019-09-22 11:26:06 +02:00
Twinaphex 83f1b28f98 Revert "(Cocoa) Move nsview_get_ptr and nsview_set_ptr to cocoa_gl_ctx.m"
This reverts commit 4f564360e7.
2019-09-22 10:54:01 +02:00
twinaphex 4f564360e7 (Cocoa) Move nsview_get_ptr and nsview_set_ptr to cocoa_gl_ctx.m 2019-09-22 10:48:23 +02:00
Twinaphex 23bb1414ff (Metal) Buildfix 2019-09-22 10:30:59 +02:00
Twinaphex 6a9feb7978 (OSX) Refactor this so that we always set the userdata
pointer so we can use the new set_title codepaths - will
have to check how to reduce the overhead in nsview_get_ptr
later
2019-09-22 10:19:03 +02:00
Twinaphex 69a38f9b9f (Cocoa) Pass direct pointer to UI companion driver window title function 2019-09-22 07:41:56 +02:00
twinaphex 03bddff8e6 Cleanups of update_window_title functions 2019-09-22 03:05:06 +02:00
twinaphex 302e2fdc53 Move show memory details outside of the video context driver and
into retroarch.c - avoid lots of code duplication
2019-09-21 07:49:33 +02:00
twinaphex b28c405377 Backport and rebase initial FPGA port that was done in 2017 (port
done for Z-Turn board) - has some outstanding issues such as
very slow framebuffer software rendering output that needs to
be overcome before this becomes usable - community help needed
2019-09-17 08:16:50 +02:00
Brad Parker c7c7d0988e initial network video driver, sends raw frames over TCP 2019-09-17 04:18:44 +02:00
twinaphex 718d65d95d Take this out - too unsafe - fixes D3D12 driver 2019-08-29 12:30:56 +02:00
twinaphex 5ca165379c Cleanups 2019-08-29 01:45:44 +02:00
twinaphex 04f9b81fed Cut down on some unnecessary wrapper functions 2019-08-29 00:02:50 +02:00
twinaphex 3a7515c82f Cut down on code duplication 2019-08-28 23:58:15 +02:00
twinaphex 01cb2b8d44 Cleanup 2019-08-28 23:55:57 +02:00
Sunderland93 8345f08f64 [Wayland] Remove deprecated wl_shell interface 2019-08-28 12:26:51 +04:00
twinaphex a623a611f1 (Wayland) Untested - apply the same for Wayland 2019-08-24 20:51:12 +02:00
Twinaphex 6d0875e975 (OSX) Use new menu rescaling when resizing window 2019-08-24 20:36:06 +02:00
LazyBumHorse f51e50a423 fix logging on Windows sometimes not being null-terminated 2019-08-15 13:39:19 +02:00
Twinaphex accae545b0
Merge pull request #9279 from LazyBumHorse/fix_glhigh
workaround for glcore crash with Mesa
2019-08-13 22:00:28 +02:00
twinaphex 558e50b5a0 Get rid of unused code libdbgfont 2019-08-13 11:42:46 +02:00
LazyBumHorse 907bea6abb destroy leaked context 2019-08-12 23:05:44 +02:00
LazyBumHorse 010df00d74 workaround for Mesa crash when trying unsupported OpenGL versions
also fixes attribs sometimes being garbled
2019-08-12 21:08:22 +02:00
Brad Parker db53e54b15 cleanup 2019-08-07 14:46:47 -04:00
Brad Parker b97069aa6d opengl: remove unnecessary second check for requested version at the end, add ES1/2 version checks when built with ES3, add 3.1/3.0 version checks 2019-08-07 12:24:24 -04:00
Brad Parker 7b96ee1a31 windows buildfix 2019-08-06 22:01:49 -04:00
Brad Parker 1c1db0a7de opengl: add missing 4.x versions to try, fail early if requestion version does not work 2019-08-06 17:53:15 -04:00
Brad Parker 7479245875 opengl: loop through highest available versions to find a working one, only do hwapi check on glx/wgl for now 2019-08-05 10:46:17 -04:00
twinaphex 65b4c2595e Update set keyboard mapping code for input driver 2019-07-27 02:21:24 +02:00
twinaphex 453cc3dcbd (video context driver) has_Windowed can be degraded to a simple
boolean variable
2019-07-26 06:23:20 +02:00
orbea e13ec54dc6 Fix --disable-overlay. 2019-07-21 10:26:42 -07:00
Twinaphex db6a4f8368 (UI Companion) Get rid of unused iterate function callback 2019-07-19 13:59:07 +02:00
twinaphex d06ce4df13 Buildfix for Travis 2019-07-10 23:56:47 +02:00
twinaphex 278063d157 (CocoaGL) Silence warning when building without HAVE_VULKAN 2019-07-10 05:48:26 +02:00
twinaphex 1d6bae7b35 (Linux) fix --disable-overlay 2019-07-10 05:43:05 +02:00
twinaphex 09f5d2c95d Fix compilation when configuring with --disable-overlay 2019-07-10 05:39:50 +02:00
twinaphex 3cfa3ff1d8 Cleanups 2019-07-04 22:05:38 +02:00
Twinaphex 5d56302a31
Merge pull request #9033 from yoshisuga/ios_remove_pause_indicator
iOS: remove pause indicator
2019-06-29 12:12:32 +02:00
CatGreen90 550ea0f143 Update android_ctx.c (#9032) 2019-06-27 19:37:21 -05:00
twinaphex c57aa566e5 (CGL) Add missing header 2019-06-19 20:53:24 +02:00
twinaphex d63f4afc57 Add missing header include 2019-06-18 22:46:37 +02:00
root e8b07e93a4 fix missing include 2019-06-18 23:19:09 +03:00
LazyBumHorse c20c67bd3a proper shader compatibility checks
- move shader flags from the video drivers to the context drivers
 - rework config_load_shader_preset() from configuration.c into retroarch_load_shader_preset() in retroarch.c with proper compatibility check
 - implicitly call retroarch_load_shader_preset() in retroarch_get_shader_preset() once per core/content life cycle
 - use video_shader_is_supported() instead of video_driver_test_all_flags() where appropriate
 - remove GFX_CTX_FLAGS_NONE because it is meaningless
2019-06-18 13:46:41 +02:00
LazyBumHorse 692dc9f6a9 refactor shader checks affected by last commit and more:
- gl.c: refactor backend fallback into more general gl2_get_fallback_shader_type
 - d3d9-12, gl_core, gx2_gfx, gl, vulkan: more consistent shader init and `set_shader` behavior
 - configuration.c: remove check_shader_compatibility
 - shader_glsl.c, shader_gl_cg.c: use `video_shader_get_type_from_ext`
 - shader_gl_cg.c: add shader type check with fallback to stock like in shader_glsl.c
 - menu_shader.c: use `enum rarch_shader_type` instead of `unsigned`
 - video_shader_parse.c: add `video_shader_to_str` for easier logging
 - remove `type` from `struct video_shader`, which was always set to CG and wrongly used in lang_process.cpp's `slang_process()` (has no further consequences because the code is unused)
2019-06-18 13:44:19 +02:00
twinaphex ee3208ac39 Integrate video_driver.c into retroarch.c 2019-06-17 15:10:22 +02:00
Yoshi Sugawara 45b36d7d47 iOS: remove pause indicator; show the native UI menu using 4-finger swipe down gesture 2019-06-14 08:35:33 -10:00
jdgleaver 80c9475fa4 Add option to show 'remove playlist entry' only on history/favourites 2019-06-04 11:29:51 +01:00
Twinaphex cc22680480
Merge pull request #8897 from orbea/khr
Try using the udev or linuxraw input drivers for khr_display.
2019-06-02 09:07:35 +02:00
orbea a9c9d0efc3 Try using the udev or linuxraw input drivers for khr_display.
When using vulkan with a khr_display context while the x input
driver is set RA will fail to start. This changes it to try setting
the udev and then linuxraw input drivers in such cases.

This code is copied from gfx/drivers_context/drm_ctx.c
2019-06-01 19:16:27 -07:00
orbea 44c62c8a37 Fix shaders init with glcore + kms.
See https://github.com/libretro/RetroArch/issues/8834
2019-06-01 13:32:06 -07:00
Twinaphex 5183160142
Merge pull request #8894 from LazyBumHorse/master
(wgl_ctx) set GFX_CTX_FLAGS_SHADERS_SLANG for glcore
2019-06-01 21:35:38 +02:00
LazyBumHorse a6f042b320 wgl_ctx: set GFX_CTX_FLAGS_SHADERS_SLANG for glcore 2019-06-01 21:21:45 +02:00
twinaphex e680fab6e1 (Cheevos) Fix Cheevos
(Wayland) Hopefully finally fix EGL issues
2019-05-30 11:08:00 +02:00
twinaphex 9d585ecd94 (EGL) Buildfixes 2019-05-29 10:02:03 +02:00
twinaphex 4a08b3e239 (Wayland ctx) Add missing HAVE_EGL ifdefs 2019-05-27 14:55:41 +02:00
Brad Parker f2e15af6ba griffin: linux buildfixes 2019-05-22 14:07:56 -04:00
twinaphex 74388d8490 Remove string_concat 2019-05-10 18:05:58 +02:00
twinaphex 39eadbab6f Use string_concat in more performance critical areas 2019-04-30 21:17:51 +02:00
twinaphex 1f53eea4ee (Cocoa GL/GLES) Set this flag for OpenGLES 2019-04-26 02:27:48 +02:00
twinaphex 59b45f7812 Start making HAVE_OPENGL_CORE independent 2019-04-24 03:23:57 +02:00
twinaphex 04d062b3d4 (MSVC2003) Enable HAVE_OPENGL1; make HAVE_OPENGL1 independent from
HAVE_OPENGL
2019-04-22 22:48:23 +02:00
orbea 1e86824e96 wayland: Fix build.
Fixes https://github.com/libretro/RetroArch/issues/8614
2019-04-21 08:11:26 -07:00
twinaphex 8e638f435a (Wayland) wl_array_for_each macro fails with CXX_BUILD - have to
roll our own macro instead doing it right
2019-04-20 20:33:22 +02:00
twinaphex 7b3be5eddf (wayland) Fix some CXX_BUILD issues; possibly not all 2019-04-20 18:42:23 +02:00
Themaister ecc7bc0cf2 Fix compile error and flag errors on X/Wayland. 2019-03-13 18:27:44 +01:00
Twinaphex dd5eca0f46 (OSX) Buildfix 2019-03-13 14:31:03 +01:00
twinaphex b347b26d61 Reimplement shader flags being set - GL core should have only
Slang support and no GLSL, with the GL2 driver it is dependent
on the context driver
2019-03-13 14:06:50 +01:00
Vladimir Serbinenko 2d5715b807 wayland: fix keyboard handling.
This bug interferes with my BK-0010 libretro port.
2019-03-12 23:49:46 +01:00
Brad Parker a09e110d24 VC6 cannot cast uint64 to double, use int64 instead 2019-03-01 09:10:05 -05:00
Twinaphex adc9ecf4cc
Merge pull request #8335 from natinusala/master
Reintroduce menu widgets (only runloop_msg_queue for now)
2019-02-23 14:22:31 +01:00
Brad Parker 4f0d61a2ac update copyright 2019-02-22 19:13:36 -05:00
natinusala a98cb75549 libnx: disable mesa errors to improve perf 2019-02-21 20:58:23 +01:00
twinaphex 158a442036 Add further HAVE_OPENGL1 support 2019-02-17 10:42:16 +01:00
Brad Parker 5e177c75a5 add memory stats to more context drivers, use correct default variables for fps/stats/framecount/memory_show 2019-02-15 15:59:00 -05:00
twinaphex 5733ed9a29 Move these defines to cocoa_common.h 2019-02-10 02:11:22 +01:00
twinaphex 293eac3019 Update 2019-02-10 02:03:50 +01:00
twinaphex 62cef96118 Update cocoa_gl_ctx.m 2019-02-10 02:02:17 +01:00
twinaphex 794ab4ef68 Update cocoagl_set_mode 2019-02-10 01:59:08 +01:00
twinaphex 2c9b7c84df Updates 2019-02-10 01:54:39 +01:00
twinaphex a49d0a50b9 Move more functionaliy to cocoa_gl_shared.h 2019-02-10 01:44:46 +01:00
twinaphex 35ce4dcadc Updates 2019-02-10 01:30:12 +01:00
twinaphex 74bddae86e (CocoaGL) Move shared code to gl_shared file 2019-02-10 01:29:04 +01:00
twinaphex b1c4bdf6f7 (Cocoa) Cleanups 2019-02-10 01:25:07 +01:00
Twinaphex ed458cd89b (OSX) Buildfix 2019-02-10 01:21:45 +01:00
twinaphex 20a94a5f37 (CocoaGL) Cleanups 2019-02-10 01:16:35 +01:00
twinaphex d0e26c10aa Move more code to cocoa_gl_shared.h 2019-02-10 01:11:07 +01:00
twinaphex c363eb4397 Move more common functions over to cocoa_gl_shared.h 2019-02-10 00:58:05 +01:00
twinaphex 6f43b7974b Add cocoa_gl_shared.h 2019-02-10 00:31:27 +01:00
Twinaphex fa4e074552 Revert "(Cocoa) Have only one Cocoa GL context driver from now on"
This reverts commit 08bd58e0c4.
2019-02-09 22:57:41 +01:00
Twinaphex d85385ca8a Revert "(OSX) Buildfix"
This reverts commit 13b8d63bc5.
2019-02-09 22:57:28 +01:00
Twinaphex 13b8d63bc5 (OSX) Buildfix 2019-02-09 22:56:49 +01:00
twinaphex 08bd58e0c4 (Cocoa) Have only one Cocoa GL context driver from now on 2019-02-09 22:52:43 +01:00
twinaphex a97fffccb8 Cleanup macro 2019-02-09 21:13:37 +01:00
twinaphex 1a8ad73c3f (Cocoa) Unify both headers 2019-02-09 04:40:38 +01:00
Twinaphex 3b19fa9bad
Merge pull request #8226 from Sunderland93/master
[Wayland] Fix zxdg_shell_v6 detection
2019-02-08 19:35:47 +01:00
Aleksey Samoilov b609eaf83f
[Wayland] Fix zxdg_shell_v6 detection 2019-02-08 21:45:40 +04:00
twinaphex 2599172831 Get rid of ui_cocoa_metal.h 2019-02-07 04:37:05 +01:00
twinaphex f705503531 (Apple) Get rid of HAVE_CORELOCATION/HAVE_AVFOUNDATION - was mostly dormant
code and makes the Apple code needlessly complex right now. We can
always reintroduce this later on when the time is right
2019-02-07 04:03:52 +01:00
twinaphex d1edfabddb Revert "Move code to cocoa_common.m"
This reverts commit d3da2e2616.
2019-02-07 03:25:01 +01:00
twinaphex d3da2e2616 Move code to cocoa_common.m 2019-02-07 03:20:33 +01:00
orbea 28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
twinaphex 62bea6ad11 SOme header cleanups 2019-02-02 22:02:24 +01:00
orbea 5d56080312 Use the posix poll.h instead of sys/poll.h. 2019-02-01 09:58:04 -08:00
Yoshi Sugawara a18512375b Support for tvOS
- add tvOS target
    - support code signing tvOS cores by adding an argument to the code signing cores script
    - use NSCachesDirectory for the documents directory
    - add some mfi controller handling logic to set non-game controllers to the last index to avoid interfering with operation
    - autodetect mfi controller for apple tv on startup - added autodetect to hid joypad
    - added a webserver to transfer files for tvOS
    - xcode: clean up project, remove unused folders
    - remove HAVE_MATERIALUI setting for tvos build, make it use XMB as default
    - added retroarch app icon courtesy of @MrJs
    - added auto-detect of mfi controller for apple tv
2019-01-29 10:13:46 -10:00
benutzer193 8e26b13578
If window is not present, create window 2019-01-26 17:49:20 +01:00
Sunderland93 cd35fb9440 Change prev_width and prev_height to unsigned int 2019-01-20 22:12:05 +04:00
orbea e062b98088 Remove trailing blank lines.
find . -type f -exec sed -i '${/^[[:space:]]*$/d;}' {} \+
2019-01-17 19:39:38 -08:00
Sunderland93 dba9781f26 Fix toggle fullscreen 2019-01-12 22:18:31 +04:00
Greg V b52a5ae664 Remove trailing whitespace in wayland_ctx.c
vim has been helpfully doing this for me every time I saved the file
and I've had to manually ignore these changes when committing.
Let's just commit this.
2019-01-11 20:37:59 +03:00
twinaphex 01b2b9c3a6 Buildfix 2019-01-09 01:01:03 +01:00
Twinaphex ac04c1bfc5
Merge pull request #7892 from Datamats/libnx_nwindow
libnx: refactor all the code of the now deprecated gfx api over to the new nwindow / framebuffer api
2019-01-08 23:36:20 +01:00
Twinaphex d2f7853d49
Merge branch 'master' into more-wayland 2019-01-08 21:45:43 +01:00
Twinaphex 40997473ed
Merge branch 'master' into orbis2 2019-01-08 20:18:08 +01:00
orbea bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
Mats 462a4b24fd libnx: refactor all the code of the now deprecated gfx api over to the new nwindow / framebuffer api 2019-01-07 15:03:44 +01:00
Greg V e36bf32490 Wayland: track current output and its scale
Ideally, we would track all outputs we're on and choose the highest DPI among them,
but that is pretty difficult. Let's at least use the latest output we've entered
as the current one.
2019-01-04 01:58:44 +03:00
Greg V 60c8f51009 Wayland: keep track of all outputs (displays)
Required to support multiple monitors with varying scales (HiDPI/LoDPI)
2019-01-04 00:37:02 +03:00
Greg V 056c7fffe1 Wayland: consistently store wl->width/height unscaled
No functional change
2019-01-03 23:43:36 +03:00
Greg V b7a13a02cb Wayland: use lowercase 'retroarch' as app_id
It should match the name of the .desktop file.
2019-01-03 22:16:55 +03:00
Greg V c151ad1bb2 Wayland: remove bogus condition
Pointy hat: @sardemff7
2019-01-03 22:15:48 +03:00
Sunderland93 d374e8415f Fix drag with "Alt" key on non xdg_wm_base shell's 2019-01-03 22:54:01 +04:00
Greg V a9a53fdb64 Wayland: create fullscreen Vulkan surface multiplied by the scale 2019-01-01 02:43:59 +03:00
Greg V 6d943e10a6 Wayland: unbreak Vulkan after fixing HiDPI resizing 2019-01-01 02:38:14 +03:00
Twinaphex eaef091915
Merge pull request #7855 from myfreeweb/wayland-hidpi-resize
Wayland: Fix window resizing on HiDPI monitors
2019-01-01 00:35:16 +01:00
M4xw a2eaa6a19d [LIBNX] Native 1080p support 2019-01-01 00:26:18 +01:00
Greg V c901866864 Wayland: Fix window resizing on HiDPI monitors 2019-01-01 02:23:39 +03:00
Francisco José García García 1b35b75d45 [ORBIS] Fix height / width typo 2018-12-31 00:07:39 +01:00
Francisco José García García c56e9b1ff6 [ORBIS] eglSwapInterval workaround 2018-12-30 14:01:10 +01:00
Francisco José García García d34b94a661 [ORBIS] Several EGL and GL fixes 2018-12-30 00:11:53 +01:00
Francisco José García García 48167d46bc [ORBIS] Initial video context driver 2018-12-28 01:27:13 +01:00
Themaister 868465ad01 EGL: Add callback to select EGLConfig.
A more robust fix for DRM/GBM shenanigans.
2018-12-11 20:12:25 +01:00
Sunderland93 830882e296 Merge branch 'server-decorations' 2018-12-09 19:03:57 +04:00
Sunderland93 d1c15efc24 Revert "Add KDE's server-decoration protocol as fallback (for KDE)"
This reverts commit 058a880a8b.
2018-12-09 18:47:47 +04:00
Sunderland93 058a880a8b Add KDE's server-decoration protocol as fallback (for KDE) 2018-12-09 18:42:45 +04:00
Sunderland93 f45154f15c Add support for zxdg_decoration_manager_v1 2018-12-09 14:56:36 +04:00
Sunderland93 f960144212 Merge branch 'fallback' into 'master' 2018-12-05 23:23:02 +04:00
Twinaphex 5e74115a41
Merge pull request #7676 from Sunderland93/master
Wayland: fixes
2018-12-05 20:15:54 +01:00
Sunderland93 dc94886664 Initial support for xdg-decoration-unstable-v1 2018-12-05 22:51:07 +04:00
Sunderland93 e12caa94d4 Style fixes 2018-12-05 22:36:37 +04:00
Sunderland93 dcec570d05 Style fix 2018-12-05 21:20:15 +04:00
Sunderland93 72eb7c4f59 Temp fix resizing 2018-12-03 14:48:13 +04:00
Sunderland93 2b6fbbdfe0 Temp fix resizing 2018-12-03 14:46:57 +04:00
Sunderland93 9b0bad5d9f Add zxdg_shell_v6 and wl_shell ad fallback interfaces 2018-12-03 14:32:31 +04:00
Sunderland93 eda342262b Fix 2018-12-02 21:15:57 +04:00
Aleksey Samoilov 3d159d424e
Cleanup 2018-12-02 17:53:03 +04:00
Sunderland93 0f5729354e Initial support for toplevel resizing 2018-11-30 21:36:42 +04:00
Sunderland93 d81e9a08b2 Add toplevel width and height 2018-11-28 17:59:06 +04:00
natinusala 9cad7135a9 libnx: implement focus gain and loss callbacks 2018-11-28 14:11:42 +01:00
Sunderland93 1e097b0e1d Implement xdg_toplevel_close event 2018-11-28 13:58:14 +04:00
Twinaphex 7a174d290e
Merge pull request #7655 from Sunderland93/master
[Wayland] Implement idle-inhibit support
2018-11-26 19:25:46 +01:00
Sunderland93 b538786b00 Implement zwp_idle_inhibit_v1 protocol 2018-11-26 21:54:39 +04:00
twinaphex 098e62067e Small cleanups 2018-11-26 13:37:35 +01:00
twinaphex 7d9e564667 Turn some C++ comments into C comments 2018-11-24 19:40:14 +01:00
Sunderland93 17fd203141 Waiting for the "initial" set of globals to appear
(fixed xdg_wm_base_ping working)
2018-11-24 20:52:22 +04:00
Sunderland93 fbcab67d8b Fix wrong toplevel geometry 2018-11-23 23:04:06 +04:00
Sunderland93 cd8bf003d1 Add toplevel configuration 2018-11-23 21:23:53 +04:00
Sunderland93 9d5cb529c1 Add wait event for surface configure 2018-11-23 21:08:42 +04:00
Sunderland93 2615ad3f55 Make it works! 2018-11-21 21:28:32 +04:00
Sunderland93 b64f302eb7 Check for resize 2018-11-19 22:31:17 +04:00
Sunderland93 4d8defb4c9 Remove D-bus based screensaver inhibition
(will replaced to idle-inhibit in future)
2018-11-18 21:50:39 +04:00
Sunderland93 c32c98e667 Very WIP: xdg-shell support 2018-11-17 16:01:51 +04:00
Stuart Carnie dde3545600
chore(cocoa): Revert to using cocoa_gl_ctx.m; remove macos_ctx.m 2018-11-04 20:50:51 -07:00
Stuart Carnie 5c1075127b
chore(metal): Separate legacy GL and Metal source
* Forks of Cocoa / Cocoa Touch to *_metal.* version
* Reverted original GL Cocoa / Cocoa Touch versions
* GL and Metal projects still build
2018-11-04 20:50:50 -07:00
twinaphex bba6f438cf Cleanups; set pointer_enable for libnx 2018-10-01 21:42:05 +02:00
natinusala fef4448ddb libnx: added touch support 2018-10-01 21:22:21 +02:00
twinaphex 85ed60cf9a Cleanups 2018-10-01 03:46:12 +02:00
M4xw be2cba3200 [LIBNX] Mesa EGL backend has been fixed, remove workaround. 2018-09-27 20:02:30 +02:00
M4xw cf097d7f42 [LIBNX] Implement OpenGL 2018-09-27 01:23:24 +02:00
Alfredo Monclus 599ed980c6 Fix linux icon (#7282) 2018-09-22 13:37:22 -04:00
Alfrix 244b3bed3d New 16x16 icon 2018-09-22 12:14:18 -03:00
Yoshi Sugawara 2b72a9151d Comment out unsupported code for iOS for now, so that it does not crash on startup; fix for building in Xcode 10 2018-09-19 22:09:29 -10:00
twinaphex 3f8e3547f4 (GLX) swap_control_tear should now be implemented and working 2018-09-12 04:17:41 +02:00
twinaphex 914df58d2e (WGL) Adaptive Vsync should work now for WGL 2018-09-12 03:59:25 +02:00
twinaphex 98b20d4e5d (GLX/WGL) Start implementing adaptive VSync (swap_control_tear) for GLX/WGL pt. 1 2018-09-12 02:42:24 +02:00
twinaphex 4738ef545c Change interval type to signed int 2018-09-12 00:08:13 +02:00
twinaphex bfdb75a30e Add ifdef 2018-09-09 01:28:09 +02:00
Themaister d338dac277 Only do mailbox emulation for fullscreen.
Too large impact on performance in Windowed mode.
2018-09-08 16:27:25 +02:00
twinaphex d5fa379aa8 Update header 2018-09-01 03:54:47 +02:00
twinaphex 85f093e042 Change these to numbers 2018-08-31 21:25:33 +02:00
twinaphex a58511ec00 Revert "Compatibility fixes for OSX PPC"
This reverts commit d7899c51aa.
2018-08-31 19:20:10 +02:00
twinaphex 1265d7546c Revert "Start using raw constants for OSX version detection"
This reverts commit ab34a70873.
2018-08-31 19:19:42 +02:00
twinaphex ab34a70873 Start using raw constants for OSX version detection 2018-08-30 16:35:44 +02:00
neville d7899c51aa Compatibility fixes for OSX PPC 2018-08-30 16:18:51 +02:00
twinaphex ae0d9fd60d (Wayland) Buildfixes 2018-08-17 17:42:14 +02:00
Twinaphex 4d96fddf5e
Merge pull request #7061 from wiktorek140/sailfishos-touch
Sailfish OS  device build configuration connected with touch screen support required for device with this OS
2018-08-15 13:30:04 +02:00
twinaphex a6941fb4ed Initial work done on VS2017 solution for Android 2018-08-14 16:02:31 +02:00
Wiktor Strzębała 45799ee034 Bring up touch support for wayland subsystem for sailfish os devices
Touch code cleanup
Make variabled static as suggest bparker06
C89 compilation error fix (at least for loops)
More C89 fixes

Signed-off-by: Wiktor Strzębała <wiktorek140@tlen.pl>
2018-08-09 20:49:27 +02:00
twinaphex aec7ed40da This crashed Wayland 2018-08-01 01:15:58 +02:00
Sven 5f35249216 Implement robust cheat searching interface with rumble features 2018-07-25 19:19:14 -04:00
Brad Parker dbfccb25dd sixel: fix context init 2018-07-12 22:59:05 -04:00
Brad Parker ab27b7c85f initial SIXEL video driver 2018-07-12 16:55:08 -04:00
Themaister f2cae17021 Vulkan: Try to avoid creating swapchains redundantly.
Win32: Only make resize events when needed.
Do not create swapchain unless necessary.
Deal better with Windows WSI workarounds.
2018-07-01 16:21:09 +02:00
Themaister c4ba8d26a0 Support multiple displays in VK_KHR_display. 2018-07-01 01:21:51 +02:00
Stuart Carnie 411bcf8bdd feat(apple): Metal support for macOS
* includes rgui
* shader support

This is a work-in-progress and there are some bugs and visual artifacts
still to be fixed.
2018-06-20 21:33:45 -07:00
Gustavo Maciel Dias Vieira 14c505117d Add screensaver (idle) inhibition for Wayland driver
The Wayland driver currently has no implementation for gfx_ctx_wl_suppress_screensaver. This adds a Dbus implementation using the same infrastructure used by the X11 driver.
2018-05-29 09:56:58 -03:00
twinaphex 34eb78ad78 Silence some warnings 2018-05-14 00:35:01 +02:00
Twinaphex d0a697ebf0 (MacOS) Another buildfix 2018-05-14 00:23:05 +02:00
Twinaphex f3f0c6b1d1 One buildfix 2018-05-14 00:21:08 +02:00
Stuart Carnie 789933b333 wip: add Vulkan support to Apple platforms 2018-05-13 21:35:23 +02:00
twinaphex 542294900f (WinRT) More compilation fixes 2018-05-12 19:03:39 +02:00
Brad Parker a1aefc901c Qt WIMP GUI 2018-04-30 14:33:05 -04:00
Rob Loach 71c031099b
Fix missing division in mali fbdev 2018-04-27 22:44:53 -04:00
Brandon Wright 0e013ced75 Fix typo in mali fbdev driver. 2018-04-27 12:42:46 -05:00
twinaphex 6f4fd8859a Add customizable swapchain images flag to VC EGL context 2018-04-23 13:12:00 +02:00
twinaphex 1526c8a15d (PS3) Should fix PS3 build with context driver 2018-04-21 18:05:25 +02:00
Twinaphex f4c83157af Fix CocoaGL context driver 2018-04-21 18:06:14 +02:00
Brandon Wright c4f818599c Add some fbdev refresh rate polls. Also Xv. 2018-04-16 16:23:59 -05:00
Brandon Wright 95f8205fd1 Add DRM interface for refresh rate. 2018-04-16 15:36:46 -05:00
Brandon Wright df5528b1d0 Divide Wayland rate by 1000 instead of multiply. 2018-04-15 20:00:14 -05:00
Brandon Wright e049605359 Add refresh rate polling to Win32 >= Windows 7. 2018-04-15 19:33:38 -05:00
Brandon Wright 533f898132 Add get refresh rate context function. Implement for X11 and Wayland. 2018-04-15 17:56:12 -05:00
Brandon Wright 9f15e39114 Also use the original fallback designed for older window managers. 2018-04-02 20:21:32 -05:00
Brandon Wright 0a5e65dc06 Add workarounds based on window manager for override-redirect. 2018-04-02 20:01:14 -05:00
Brandon Wright 8356300c3e Apply the same fix to xegl_ctx.c 2018-04-01 17:47:47 -05:00
Brandon Wright 64686d8106 Set override-redirect on true fullscreen, but after window is mapped. 2018-04-01 17:47:27 -05:00
twinaphex 92b46a8275 Some cleanups 2018-03-30 15:50:27 +02:00
Brandon Wright 3bbff3c689 Use _NET_WM_STATE_FULLSCREEN as a first measure, only falling back to override-redirect when not supported. 2018-03-29 17:13:51 -05:00
Brandon Wright 5da1aa0af7 Allow compositor disabling on X11 fullscreen through _NET_WM_BYPASS_COMPOSITOR.
Note: KWin doesn't bypass compositor on override-redirect windows, so enabling windowed fullscreen is necessary.
2018-03-29 15:20:14 -05:00
twinaphex 923ab3b6f4 (DRM Ctx) Buildfix 2018-03-27 14:19:36 +02:00
Brandon Wright eb6d04d430 With X context set vk.swapchain to VK_NULL_HANDLE when failing to create swapchain so Vulkan common functions don't try and use it and crash. 2018-03-18 19:31:25 -05:00
Brandon Wright e8de264b75 Fix X11 Vulkan bug from Wayland driver. 2018-03-17 19:45:01 -05:00
Brad Parker 614521b238 fix building on windows without dinput 2018-03-16 21:03:43 +00:00
ajefr 1da67cecf3
declaration error 2018-03-08 21:44:26 +01:00
ajefr 98f8ed637c
typo
stati -> static
2018-03-08 21:19:00 +01:00
twinaphex 0ec5ce8cfe Get rid of d3d context drivers 2018-03-02 17:23:43 +01:00
twinaphex dfdbc00a84 Cleanup Xbox 360 code from d3d_ctx 2018-03-02 17:03:34 +01:00
twinaphex 9d45d26f56 Update 2018-03-01 21:26:32 +01:00
twinaphex 13b6a016fc Fix d3d swap buffers call 2018-03-01 21:23:15 +01:00
twinaphex 16c1bd7a03 Create context get_api function 2018-03-01 21:16:54 +01:00
twinaphex 070c09faec Avoid more pointer grabbing for video driver ptr 2018-02-16 20:42:37 +01:00
Brad Parker 43aa977a91 add menu setting to toggle window decorations 2018-02-10 23:46:09 -05:00
twinaphex 495c702860 Buildfixes/cleanups 2018-01-25 12:30:08 +01:00
twinaphex 4c390944bb Remove some more HAVE_D3D8/HAVE_D3D9 ifdefs that depend on
compile-time instead of runtime
2018-01-25 12:22:06 +01:00
twinaphex bc81a9dc88 Dehardcode LPDIRECT3DDEVICE usage 2018-01-25 01:45:03 +01:00
twinaphex 63ad668ff0 Add HAVE_DYNAMIC ifdefs 2018-01-24 02:12:58 +01:00
twinaphex 6f73bdf287 (Emscripten) Cleanups 2018-01-20 02:05:37 +01:00
twinaphex f97d6ec909 (VC EGL) Cleanups 2018-01-20 02:03:49 +01:00
twinaphex 61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +01:00
Toad King 19facdb066 reset drivers shortly after toggling fullscreen mode
fixes black screen after going fullscreen in game
2018-01-15 02:12:53 -06:00
Toad King b75f4b4f67 implement setting vsync and swapinterval
vsync is not "true" vsync (that's always on in browsers) but changes the main loop timer from immediate to window.requestAnimationFrame
2018-01-14 23:29:20 -06:00
Toad King 60f203d344 fix emscripten build 2018-01-14 16:03:44 -06:00
Toad King c8f03b4640 fix fullscreen sometimes losing state 2018-01-14 15:19:37 -06:00
Toad King 5ef595be1a fix fullscreen 2018-01-14 02:33:22 -06:00
Toad King 77b158e6a2 fix compiler warning 2018-01-13 20:47:30 -06:00
Toad King a77f9c37c6 start on bringing the emscripten video code up to speed with latest emscripten
fix rwebinput
2018-01-13 00:05:07 -06:00
twinaphex a8445c3ec4 D3D8 buildfix 2018-01-03 20:23:34 +01:00
twinaphex df9cf9df21 (Xbox OG) Buildfix 2018-01-03 14:43:41 +01:00
Alcaro 9ab6957dc4 Fix #6009 v2.0 2017-12-31 14:32:14 +01:00
twinaphex df3bb2e7e8 gfx_ctx_wgl_update_title - small cleanup 2017-12-31 13:54:34 +01:00
Brad Parker 81cd5435a1 x11: enable window transparency 2017-12-16 10:29:30 -05:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
Themaister 75b84b4f94 Support pending swapchain creation. 2017-12-09 17:28:20 +01:00
clienthax d6daf2f573 [PS3] Possible fix for 0x0 resolution on 2017-12-07 19:49:11 +00:00
Brad Parker bc4bbe79aa don't define UNICODE at all, we don't need it and it causes dinput problems (names are wchar_t) 2017-12-05 14:26:59 -05:00
Brad Parker 20b73cd676 x11: add RetroArch logo to window title bar 2017-11-22 00:01:42 -05:00
twinaphex 97095404bd Buildfixes 2017-11-13 11:04:09 +01:00
Twinaphex fcae5deb2d
Merge pull request #5670 from libretro/Alcaro-patch-2
mali_fbdev_ctx: Remove filestream dependency
2017-11-13 10:52:01 +01:00
Alcaro 58bae8456a
Remove filestream dependency
This causes issues in #5664
2017-11-13 09:45:48 +00:00
Alcaro d005adbd42
Remove filestream dependency
This causes issues in #5664
2017-11-13 09:42:39 +00:00
Brad Parker 1771b11a39 wayland: fix heap buffer overflows 2017-11-05 19:31:34 -05:00
vanfanel 91c9da529f VC EGL context: Fixed hard freeze when toggling the bilinear filter option 2017-11-01 12:19:08 +01:00
vanfanel b40d50bba4 Moved commented old implementation to proper location. 2017-10-19 14:21:47 +00:00
vanfanel d9ec2267f7 Change max_swapchain=2 implementation to actually working code. 2017-10-18 12:06:58 +00:00
vanfanel 65ef37706c Add experimental way to make max_swapchain=2 work on EGL/GLES VideoCore (Raspberry Pi) 2017-10-18 03:06:30 +00:00
twinaphex d10de20bff Start compiling Griffin as C for 360 - C89 fixes 2017-10-03 04:11:41 +02:00
twinaphex bd66937112 Convert d3d_ctx.cpp to C 2017-10-02 07:57:49 +02:00
Twinaphex 59f7a59b3f (Cocoa) Fix small leak 2017-10-01 09:33:53 +02:00
twinaphex 3ab07fc43f Fix some Xbox unresolved symbol errors 2017-09-14 22:17:05 +02:00
twinaphex 07148293a5 (Xbox) Some buildfixes 2017-09-13 03:18:31 +02:00
twinaphex 33a77bd3a3 Cleanups 2017-09-06 00:40:14 +02:00
twinaphex 5ad8f2aa90 Update 2017-09-06 00:38:49 +02:00
twinaphex 511d563a1c (d3d_ctx) Log memory too - get rid of another _XBOX ifdef 2017-09-06 00:37:49 +02:00
Brad Parker 47f3a801ba gdi: allow compilation without DirectInput8 for NT 2017-09-04 14:18:50 -04:00
Twinaphex b2d9bad3a2 Update wgl_ctx.c 2017-08-22 17:44:40 +02:00
twinaphex e065d70426 (WGL) Try to use wglSwapLayerBuffers first before resorting to SwapBuffers 2017-08-19 14:17:30 +02:00
twinaphex ae2435cf16 Silence some more C89_BUILD warnings 2017-08-12 18:15:26 +02:00
twinaphex f546020429 Silence more warnings with C89_BUILD 2017-08-12 18:06:48 +02:00
Brad Parker ff98730906 don't define UNICODE for msvc2005 2017-08-09 23:33:57 -04:00
twinaphex 795ae524e9 Convert gdi_ctx.cpp to C 2017-08-09 13:56:47 +02:00
twinaphex a4a027be67 Convert wgl_ctx into C - also take care of serious warning 2017-08-09 13:51:33 +02:00
twinaphex 3bac7cc7ef Revert "Start hooking up more resolution functions - not working properly yet"
This reverts commit dccc9711d9.
2017-08-09 11:19:27 +02:00
twinaphex dccc9711d9 Start hooking up more resolution functions - not working properly yet 2017-08-09 10:58:43 +02:00
twinaphex 9272d26269 Start filling in more resolution functionality for Windows 2017-08-09 04:17:32 +02:00
twinaphex c9b88fa1ab Buildfix 2017-07-03 08:57:26 +02:00
twinaphex 708596ba84 Call dylib_free at end of WGL context destroy function 2017-07-03 08:56:17 +02:00
Twinaphex c16bb5ff5e (Cocoa) Buildfix 2017-06-27 06:14:13 +02:00
twinaphex c1c5ebf5f6 (Cocoa) Start implementing core context hooks 2017-06-27 06:11:08 +02:00
twinaphex 94af3addd0 Update cocoa_gl_ctx.m 2017-06-26 07:23:04 +02:00
twinaphex f5a12d63cc (Cocoa) Try to support Core GL 3.1/3.2/3.3 and 4.1 on OSX 10.7 and
10.10 respectively
2017-06-26 07:16:41 +02:00
twinaphex f087419165 Rename platform_linux.c to platform_unix.c 2017-06-19 17:38:49 +02:00
twinaphex 097d9bc13b (iOS) Buildfix 2017-06-18 19:43:55 +02:00
Twinaphex 56d744ceaa (Cocoa) Shared hardware context starts to work now 2017-06-18 19:35:34 +02:00
twinaphex a3f216ba86 (Android) Try to move this code to set_video_mode 2017-06-18 17:21:33 +02:00
twinaphex 4850af8eac Revert "Try to set use_hw_ctx in advance for Android"
This reverts commit c010c5b258.
2017-06-18 17:09:27 +02:00
twinaphex c010c5b258 Try to set use_hw_ctx in advance for Android 2017-06-18 16:45:36 +02:00