Commit Graph

1402 Commits

Author SHA1 Message Date
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
twinaphex 060753258a Combine input_driver.c and input_keyboard.c 2017-06-11 17:51:12 +02:00
twinaphex 95e588ce0f Fix C89_BUILD 2017-06-10 12:52:45 +02:00
twinaphex 3443153ccc (DRM/KMS) If we have the X11 input driver selected, default to udev and/or
linuxraw driver instead
2017-06-06 21:15:32 +02:00
twinaphex ded0813f6b Don't need this header 2017-06-06 07:36:06 +02:00
twinaphex f307135d1d Split up wayland input driver into separate driver; and
improve mouse support for menu
2017-06-06 07:34:33 +02:00
twinaphex 6b3dbff75f Merge input_driver.c and input_joypad_driver.c 2017-06-06 05:56:02 +02:00
twinaphex 9ebfb36b4e Use rarch_keysym_lut directly 2017-06-06 05:17:25 +02:00
Zoran Vuckovic 2056ebc803 Allow udev input to be used with X11 context 2017-06-02 01:08:28 +02:00
twinaphex b91dd1413f Silence warning 2017-05-26 19:32:18 +02:00
Brad Parker a04b54006d win32: disable winraw input driver for targets older than XP 2017-05-23 21:03:00 -04:00
Zoran Vuckovic 8535e766c8 Alow raw input driver to be used with GDI 2017-05-20 09:13:00 +02:00
Zoran Vuckovic 2eb7499b64 Alow raw input driver to be used with Direct3D 2017-05-19 19:36:14 +02:00
twinaphex 1ffb1f4feb Use wrapper function for memcmp 2017-05-19 16:20:30 +02:00
Zoran Vuckovic 9358b0c3f3 Allow raw input driver with OpenGL driver under Windows 2017-05-19 16:13:32 +02:00
Twinaphex 5e0eec8857 Remove unused variable 2017-05-19 14:53:25 +02:00
twinaphex 9d74212a41 Buildfix 2017-05-19 03:35:32 +02:00
twinaphex b0398c1482 C89 build fixes 2017-05-19 03:34:53 +02:00
twinaphex acbf11931b Move code 2017-05-16 22:46:56 +02:00
twinaphex 717709ef9e (wgl_ctx.cpp) Cleanups 2017-05-16 22:46:09 +02:00
twinaphex f24a73351c Only use wglGetProcAddress for OpenGL 2017-05-16 22:40:47 +02:00
twinaphex 126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
twinaphex f928e57064 Combine video_context_driver.c and video_driver.c 2017-05-09 01:25:59 +02:00
twinaphex ed86a2ed10 Add threading error notes 2017-05-06 17:35:12 +02:00
twinaphex 05e4ec733e Move uint variables 2017-04-28 21:03:04 +02:00
twinaphex 301ee64e80 Add HAVE_XINERAMA ifdefs 2017-04-26 15:29:21 +02:00
twinaphex 953045f0d2 Update logs 2017-04-23 11:56:46 +02:00
twinaphex 6ebd4e139e Rewrite more string_is_equal call invocations as memcmp 2017-04-22 08:51:16 +02:00
Kyle Brenneman a4d19e174a Define the platform enums if they aren't in eglext.h.
Add #defines for EGL_PLATFORM_X11_KHR, EGL_PLATFORM_WAYLAND_KHR, and
EGL_PLATFORM_GBM_KHR, if they aren't already defiend in eglext.h.
2017-04-19 07:08:05 -06:00
Kyle Brenneman fcccc9dc0b Use eglGetPlatformDisplay when it's available.
Added a platform parameter to egl_init_context. If the caller provides a
platform other than EGL_NONE, then it will try to use eglGetPlatformDisplay or
eglGetPlatformDisplayEXT instead of eglGetDisplay.

If neither eglGetPlatformDisplay or eglGetPlatformDisplayEXT is supported, then
it will still fall back to calling eglGetDisplay.

Updated the Wayland, X11, and DRM callers to use the correct platform enum.
Those are the callers that don't just pass EGL_DEFAULT_DISPLAY as the native
display handle.

Calling eglGetDisplay with any value other than EGL_DEFAULT_DISPLAY is
inherently unreliable, because it requires the EGL implementation to guess a
platform type based on a (void *) pointer. Some implementations might not
identify a particular platform, or worse, might guess wrong.

Fixes https://github.com/libretro/RetroArch/issues/4790
2017-04-16 14:19:40 -06:00
twinaphex b591d63e8b Silence unused variable warning 2017-04-15 20:20:47 +02:00
twinaphex 4b419ce125 (iOS) Fix 'release is unavailable; not available in automatic reference
counting mode'
2017-04-15 20:20:08 +02:00
twinaphex 7f4b490fdb Prevent implicit memsets with struct video_viewport 2017-04-15 19:43:52 +02:00
twinaphex e3fce81097 Use BRIDGE macro 2017-04-15 19:28:10 +02:00
twinaphex 1d97a81224 Optimize get_backing_scale_factor - store result of backing scale
factor query and use it for later function call invocations
2017-04-15 19:27:33 +02:00
Twinaphex 2324399fa8 Buildfix 2017-04-15 19:21:10 +02:00
twinaphex e97682d4ca Simplify cocoa_gl_ctx.m 2017-04-15 19:20:42 +02:00
Twinaphex 80017f7d71 (OSX) Try to free allocation at the end of get_selector 2017-04-15 19:13:21 +02:00
Jools Wills b587018c56 hardcode struct for compatibility between various mali EGL headers
Old kronos headers used mali_native_window, ARM's headers used fbdev_window, and
latest mali-fbdev package on the odroid with newer khronos headers, the struct seems missing
2017-04-07 18:55:33 +01:00
twinaphex 1b27c3dec1 Make some log messages more consistent 2017-03-24 00:28:21 +01:00
twinaphex 805470072b Make desktop_mode a static variable inside x11_common.c 2017-03-23 20:07:56 +01:00
twinaphex 1ce3b12335 Split up xinerama functions into separate files 2017-03-23 19:59:11 +01:00
twinaphex 09e7186a4e Start splitting up xinerama functions 2017-03-23 19:46:06 +01:00
twinaphex 207ebe5e59 Merge lakka patch for DRM 2017-01-29 03:55:32 +01:00
twinaphex 6247d6ea1d Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
twinaphex 4ea31e99aa Remove some header includes 2017-01-23 00:39:20 +01:00
twinaphex 7d624fdedb Push some build fixes when compiling with --disable-opengl --disable-shaderpipeline 2017-01-22 22:18:00 +01:00
twinaphex 1ea3bea0ee Don't pass video_info by value to context_driver init function 2017-01-22 18:29:22 +01:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
Brad Parker a54ea9ad88 show titlebar again for remaining drivers 2017-01-19 18:08:39 +00:00
Twinaphex 7961bf6d23 Merge pull request #4455 from libretro/refactor
Video driver changes
2017-01-19 15:59:23 +01:00
twinaphex 9d1de5c974 Rewrite video_context_driver_set_resize 2017-01-19 14:31:57 +01:00
Brad Parker 009c1a45b7 forgot check for SDL1 2017-01-19 00:36:29 -05:00
Brad Parker b44c8c9995 store buffer for window title, only update actual title when it changes 2017-01-19 00:33:52 -05:00
twinaphex 7fbd3fcfb6 Simplify has_windowed 2017-01-19 02:50:56 +01:00
twinaphex b96e0bb820 Remove stub update_title functions 2017-01-19 01:58:44 +01:00
Twinaphex 99622cee14 (Cocoa ) Update 2017-01-19 00:10:42 +01:00
James Le Cuirot 7f77f0cef1
Fix osmesa_ctx missing includes 2017-01-18 22:50:52 +00:00
twinaphex 34da27c36b Don't need 'frame_count' variable for check_window 2017-01-18 21:47:12 +01:00
twinaphex 40cd1b70cd Remove runloop.h header includes 2017-01-18 17:43:23 +01:00
twinaphex e620b9b697 (OSX) Fix OSX 2017-01-18 17:42:11 +01:00
twinaphex a6a4808e94 Refactor frame monitor code 2017-01-18 17:41:27 +01:00
twinaphex f0820f6433 (DRM) Should fix segfault 2017-01-18 15:23:06 +01:00
twinaphex 805c4c2d12 (android_ctx.c) Initialize these variables 2017-01-17 17:28:19 +01:00
twinaphex 4bae3032dd (X context) Fix CXX_BUILD and C89_BUILD 2017-01-17 14:51:24 +01:00
Brad Parker e4bdc5ce8b GDI: remove unused code and fix menu toggle in rgui and xmb 2017-01-16 20:41:09 -05:00
Brad Parker acd6826df9 GDI: stretch video output to fill window 2017-01-16 20:41:07 -05:00
Brad Parker 6c62901ae5 GDI: fix window not responding, but menu corruption still happens if set_gdi_pixel_format is called 2017-01-16 20:41:06 -05:00
Brad Parker 49d7be9813 MSVC GDI buildfix 2017-01-16 20:41:05 -05:00
Brad Parker bc8f9f7f3f add SwapBuffers() for gdi 2017-01-16 20:41:05 -05:00
Brad Parker fb7c3f4c37 set pixel format for GDI driver 2017-01-16 20:41:05 -05:00
Brad Parker 33520fca6f set win32_hdc for gdi 2017-01-16 20:41:05 -05:00
Brad Parker a7a1f093c0 add GDI message loop 2017-01-16 20:41:04 -05:00
Brad Parker 05c37bd39f initial GDI driver skeleton 2017-01-16 20:41:04 -05:00
bparker06 b5403da862 use name instead of joypad_name 2017-01-15 23:04:56 -05:00
twinaphex 666534cc74 Grab settings pointer only once inside wrapper 'input_driver' function 2017-01-16 00:14:10 +01:00
twinaphex 4a9ca66389 (WGL) Check if settings struct is non-NULL 2017-01-15 23:58:14 +01:00
twinaphex 4230662572 (X context) Use better swap control method if GLX_OML_sync_control
and GLX_MESA_swap_control are supported
2017-01-14 12:24:56 +01:00
twinaphex 23017e0b45 Cleanups 2017-01-13 16:57:57 +01:00
twinaphex 1fa3475d79 Add parameter to video_context_driver's 'init' function 2017-01-13 16:52:07 +01:00
twinaphex 8c9e0405fb Create video_driver_build_info 2017-01-13 16:09:32 +01:00
twinaphex 7d0056d422 Minimize dependence on settings struct from within context drivers 2017-01-11 06:44:41 +01:00
twinaphex 80f79130c0 Update set_video_mode context driver callback function 2017-01-11 06:35:50 +01:00
twinaphex c1c35c5120 More platform build fixes 2017-01-10 21:15:52 +01:00
twinaphex 59a07d73b5 (PS3) Buildfix 2017-01-10 20:19:58 +01:00
twinaphex db725155c1 (D3D) Another buildfix 2017-01-10 19:55:31 +01:00
twinaphex bc50f99e40 (WGL) Add header include 2017-01-10 19:51:06 +01:00
twinaphex a835149f69 (WGL) Buildfix 2017-01-10 19:48:19 +01:00
twinaphex 8bd12368ef Pass joypad_driver name to input_driver_init function and make
sure we don't need to access the settings struct from the
input driver
2017-01-10 17:59:48 +01:00
twinaphex d48141041d Pass joypad_info to input_state function callback - less
settings pointer grabbing
2017-01-10 17:40:21 +01:00
twinaphex b9945f05f1 Pass joypad_info to input_joypad_analog 2017-01-10 03:53:57 +01:00
twinaphex 6376f2af68 Add rarch_joypad_info_t 2017-01-10 03:44:53 +01:00
Josh Palmer 5ed17c1ffd Reorganize QNX directory structure, rename bbqnx_ctx.c to qnx_ctx.c for consistency
Added OpenGL ES3 support to qnx_ctx.c
Finalize momentics project setup
2017-01-09 20:26:09 +00:00
Twinaphex 476c047f85 (OSX) Buildfix 2017-01-09 16:16:59 +01:00
twinaphex c086a18ceb video_driver_frame_filter no longer needs to grab pointer to
settings
2017-01-09 15:46:40 +01:00
twinaphex 36fb6776b2 Don't grab settings pointer in video_monitor_get_fps function 2017-01-09 15:42:14 +01:00
twinaphex 35fefb1c09 Do away with yet more pointer grabbing of settings 2017-01-09 15:14:16 +01:00
twinaphex 6b3cc9068d Pass video_info to swap_buffers too 2017-01-09 14:59:15 +01:00
twinaphex 3d92ce140e Pass video_frame_info_t to update_window_title 2017-01-09 14:42:07 +01:00
twinaphex a90cf337c7 C buildfix 2017-01-09 01:56:36 +01:00
twinaphex c87ef25133 CXX_BUILD fix 2017-01-09 01:54:15 +01:00
twinaphex 7ec6dc0bde (x_ctx.c) Cleanup 2017-01-04 09:44:08 +01:00
twinaphex b243fec095 Simplif gfx_ctx_drm_queue_flip 2017-01-01 06:06:44 +01:00
twinaphex 77e5cdbfde Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
This reverts commit ad7386913c.
2016-12-22 23:36:11 +01:00
twinaphex ad7386913c Rename runloop_msg_queue_push to video_driver_msg_queue_push
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
Hans-Kristian Arntzen c48bb6284e Wayland: Cursor toggling. 2016-12-17 21:34:51 +01:00
Hans-Kristian Arntzen 313ac63c33 Make use of xkb_state_update_mask.
Fixes mod keys in Wayland it seems.
2016-12-17 20:42:48 +01:00
Hans-Kristian Arntzen b2059dcb79 Implement basic Wayland keyboard and mouse. 2016-12-17 20:28:08 +01:00
twinaphex feae0823ce Prevent some implicit memsets 2016-12-17 14:40:06 +01:00
Hans-Kristian Arntzen 4c99809cde Vulkan: Fix VSync toggling on Windows.
Retarded bug, but haven't actually had access to a Windows machine until
now.
2016-12-17 12:06:43 +01:00
Twinaphex b48d896c1e Merge pull request #4249 from joolswills/mali_fbdev_ctx_warning
added stdlib.h - fixes warning with free / system
2016-12-15 20:01:18 +01:00
Jools Wills 4153785130 added stdlib.h - fixes warning with free / system 2016-12-15 18:59:20 +00:00
twinaphex a5d4032d01 (X11) Cleanups 2016-12-15 12:37:14 +01:00
twinaphex 2c7af649cf (Wayland) Cleanups 2016-12-04 03:54:11 +01:00
twinaphex 49c78ea2ff (Drivers context) Cleanups 2016-12-04 03:51:12 +01:00
twinaphex cd8fad87fc (Mali) Cleanups 2016-12-04 03:48:05 +01:00
Brad Parker f725b48555 starting to revert unicode changes 2016-12-03 00:15:29 -05:00
Brad Parker 5be05b3f61 Merge branch 'msvc' 2016-12-02 14:36:48 -05:00
twinaphex 5547b3fa3e Rename some variables in wgl_ctx.cpp and cahnge prefix 'g_' to 'win32_' 2016-12-02 19:58:55 +01:00
Brad Parker f64fb911b8 remove explicit unicode def/undefs 2016-12-02 12:46:32 -05:00
twinaphex 4ee5fcae47 Buildfixes 2016-12-02 01:51:26 +01:00
Brad Parker 367dea6723 unicode-ify a couple other windows files, start changing function names to W version explicitly 2016-11-29 20:32:24 -05:00
twinaphex cd0bf8f31a Prefer to use strlcpy instead of strcpy 2016-11-26 17:11:30 +01:00
twinaphex 88b1c3ed4c Initialize char variables 2016-11-25 18:26:11 +01:00
Lioncash 5a5a54ef91 opendingux: Properly close #ifdef macro 2016-11-25 12:23:35 -05:00
twinaphex e27940e646 Fixes Android 2.4 compatibility 2016-11-19 03:54:21 +01:00
Alcaro a3e9addd80 Clean this one up a little 2016-11-14 17:23:38 +01:00
twinaphex aaefa8d59e (wayland_ctx.c) Prevent implicit memsets 2016-11-06 18:47:50 +01:00
twinaphex 695ff2a299 (sdl_gl_ctx.c) Prevent some implicit memsets 2016-11-06 18:44:55 +01:00
twinaphex 027a194346 (xegl_ctx.c) Style nit 2016-11-06 18:41:59 +01:00
twinaphex 8e941ee77a (android_ctx.c) Prevent implicit memsets 2016-11-06 18:39:38 +01:00
twinaphex 219880a72b Prevent implicit memsets for WGL context update_window_title
function
2016-11-06 18:36:58 +01:00
twinaphex d4809d310a Fix for previous bugged Xorg GL drivers 2016-11-03 13:25:44 +01:00
Logan McNaughton 200cf15044 Add egl debug context option for Android
According to https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_create_context.txt

"The default value of EGL_CONTEXT_FLAGS_KHR is zero"

So this should keep it at 0 if debug=false, and set it to EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR is debug=true

Fixes https://github.com/libretro/RetroArch/issues/3910
2016-10-31 15:28:45 -06:00
Brad Parker d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
twinaphex c3ab8800f4 Prevent implicit memsets 2016-10-21 05:57:40 +02:00
Higor Eurípedes 6f2cb9742d (font) Create font_data_t and update font_driver_init_first() 2016-10-18 20:07:00 -03:00
Mikael Brunnhede 80dc3bec09 if 0 missed Vblank log printout code, since it may cause performance degradation. 2016-10-14 12:45:00 +02:00
Mikael Brunnhede ca5e20bcaf Remove missed Vblank log printout, since it may cause performance degradation. 2016-10-14 08:59:07 +02:00
twinaphex 3b1cf79c63 (X contexts) Cleanups 2016-10-08 14:37:26 +02:00
twinaphex f698e0cfac Add GL_CAPS_GLES3_SUPPORTED 2016-10-08 14:11:12 +02:00
twinaphex 1f99df6740 (GLX) Start adding hooks for MSAA 2016-10-08 14:00:06 +02:00
twinaphex 601aba72ea Start adding GLX_SAMPLE_BUFFERS/GLX_SAMPLES to X context 2016-10-08 10:05:58 +02:00
twinaphex 91b1889873 (X11) Mouse input is no longer registered when we are on the
titlebar of the window or we are no longer inside the window
2016-10-03 06:50:00 +02:00
Logan McNaughton 4f002f2316 Specify EGL_DEPTH_SIZE for emscripten
Some drivers require it to provide a depth buffer.
2016-09-24 19:53:45 -06:00
twinaphex 83be6daa93 Try to prevent input driver from being set with Emscripten EGL context driver if HAVE_SDL2 is defined 2016-09-24 05:57:02 +02:00
twinaphex 0d49ed5877 drm_ctx.c - remove dead assignment 2016-09-22 20:56:42 +02:00
twinaphex 1b9a067bcc Move code to apple_compat.h 2016-09-14 14:10:39 +02:00
twinaphex 6d7602d47f Fix C89_BUILD 2016-09-11 16:43:28 +02:00
twinaphex 7290c7e3c2 (Emscripten) Buildfix 2016-09-11 16:39:13 +02:00
twinaphex 51b0e61712 Cleanups 2016-09-11 16:24:02 +02:00
twinaphex 7e83162c60 Remove general.h 2016-09-11 15:10:58 +02:00
twinaphex 7a36ea7d1c Silence warnings 2016-09-08 06:11:02 +02:00
twinaphex 671063aec2 Silence warnings 2016-09-06 23:17:16 +02:00
twinaphex 6f47289ba6 Start adding HAVE_CONFIG_H to gfx/drivers_context 2016-09-06 19:39:02 +02:00
Alcaro 23dc89168a are those HAVE flags not set up there or something? 2016-09-06 19:21:33 +02:00
twinaphex acd4dd527b Header include cleanups 2016-09-05 18:31:32 +02:00
Brad Parker 0eb1777a1f remove extra semicolons 2016-09-03 10:30:21 -04:00
twinaphex e106fd4374 Get rid of more general.h includes 2016-09-01 18:01:41 +02:00
twinaphex b7fd9bef60 Add configuration.h 2016-09-01 17:34:24 +02:00
twinaphex 815c0eb3ee Remove header includes 2016-09-01 05:46:10 +02:00
twinaphex 12cfb3bfce Rewrite gfx_ctx_x_make_current a bit and turn it into a
static function
2016-08-31 15:24:56 +02:00
twinaphex aa15fb3f91 Update remaining video context drivers 2016-08-31 15:02:07 +02:00
Brad Parker 2afd72252c make GLX context current when creating font textures with threaded video 2016-08-31 01:33:35 -04:00
Logan McNaughton 78337bae4b EGL_DEPTH_SIZE should be set
Same reasoning as Android.
2016-08-30 15:32:25 -06:00
Logan McNaughton 1beb9e9ffd EGL_DEPTH_SIZE should be set
EGL_DEPTH_SIZE needs to be set in order to have an FBO with a depth buffer. Some drivers aren't as strict about this but many are.
2016-08-30 15:29:17 -06:00
twinaphex 24075fd52f (osmesa_ctx.c) Cleanups 2016-08-28 18:26:53 +02:00
twinaphex 5f4ee2567c (sdl_gl_ctx.c) Cleanup 2016-08-28 18:20:31 +02:00
Alcaro 6cb656bcc9 Doublekill warning 2016-08-28 18:06:57 +02:00
Alcaro c4d4c51a5f Kill warning 2016-08-28 17:59:43 +02:00
Brad Parker cf4bf344a9 add configuration option to toggle showing hidden files (default on), fixes issue #2769 2016-08-27 21:48:55 -04:00
twinaphex 035d006d62 Set attrib to EGL_OPENGL_ES3_BIT_KRH if g_es3 is true 2016-08-23 00:09:33 +02:00
Brad Parker cc582db6fb recursively scan directories for database content, fixes issue #3139 2016-08-21 00:59:41 -04:00
Logan McNaughton 47227c829b GLES3 fixes 2016-08-06 21:45:35 -06:00
Higor Eurípedes 529031270b (osmesa) Cleanup and minor fixes 2016-08-05 20:54:35 -03:00
twinaphex a07ce85086 (OSMesa) No C++ comments 2016-08-02 02:19:06 +02:00
Higor Eurípedes 8752313961 (gfx) Add OSMesa context 2016-08-02 02:16:02 +02:00
twinaphex 6e644223a8 (D3D) Header fix pt. 3 2016-08-01 22:21:50 +02:00
twinaphex d98fad0d98 Simplify free_drm_resources 2016-07-23 06:05:21 +02:00
twinaphex 22e35c553b (PS3) Fixes issues where content would sometimes not be able to
be loaded for some sporadic reason
2016-07-22 10:41:56 +02:00
twinaphex 6ac8b64e3d Put this around a HAVE_CG ifdef 2016-07-16 22:32:33 +02:00
Twinaphex 1586214876 (OSX) Fix text title inside window 2016-07-16 15:01:06 +02:00
amspady20 9adc8e34c0 Update xegl_ctx.c
Fixed include statment for frontend_driver.h
2016-07-08 12:30:53 -04:00
twinaphex c66ada4e90 (FBDev) Cleanups 2016-07-08 14:43:13 +02:00
twinaphex e1a5379886 (FBDev) Cleanups/unifications 2016-07-08 14:29:16 +02:00
twinaphex bddd93bcaa (EGL) Don't use g_egl_quit and egl_install_sighandler 2016-07-08 12:58:06 +02:00
twinaphex d953be6397 (Wayland) Use signal handler code from frontend driver 2016-07-08 12:52:46 +02:00
twinaphex 8d5f34eeb9 Move signal handler code to frontend driver interface 2016-07-08 02:43:55 +02:00
twinaphex 76cc6fd8ec Start implementing signal handler code once in frontend driver code 2016-07-08 02:38:33 +02:00
Alcaro 4b75304d15 You missed a spot, maister 2016-07-07 21:03:30 +02:00
Hans-Kristian Arntzen df7870c2ea Vulkan: Don't use sighandling on Win32 in khr_display.
Lots of the embedded backends do signal-handling like this
which is kinda awkward. This should be moved to frontend runloop or
something similar.
2016-07-07 20:34:42 +02:00
Hans-Kristian Arntzen c561d8c4e6 Install sighandler for khr_display backend. 2016-07-07 19:32:09 +02:00
Hans-Kristian Arntzen d382e1069e Basic VK_KHR_display integration works! :) 2016-07-07 19:28:27 +02:00
Hans-Kristian Arntzen 471d06d133 Fix Wayland refresh rate logging. 2016-07-06 23:22:13 +02:00
twinaphex 3c7dc0a62e Try to silence more Coverity warnings 2016-06-29 12:13:40 +02:00
twinaphex a24d43c8fd Add GFX_CTX_FLAGS_CUSTOMIZABLE_SWAPCHAIN_IMAGES display flag 2016-06-27 23:43:57 +02:00
Twinaphex 1e91689919 (iOS) Fix FPS reporting 2016-06-22 17:42:32 +02:00
twinaphex 8a8fadc5b2 Implement max swapchain images setting, implement it first for DRM/KMS context 2016-06-21 21:36:58 +02:00
Hans-Kristian Arntzen e7b4f4fd4d Fix various Android Vulkan issues.
Was getting bogus swapchain width/height causing weird issues.
Also, create swapchain after swap interval is correctly set.
2016-06-13 19:51:44 +02:00
Twinaphex d178f90cc1 Remove this header 2016-06-08 08:19:06 +02:00
neville f170856374 (OSX) Fixes 2016-06-08 07:41:59 +02:00
Twinaphex f17b4fba05 Rename ui_cocoa_window.h 2016-06-07 16:47:48 +02:00
Hans-Kristian Arntzen c374c9853d Some potential fixes for Android Vulkan. 2016-06-07 01:43:14 +02:00
twinaphex ea5f458fbd Go through function pointer 2016-06-06 08:01:26 +02:00
Twinaphex c4cea05399 Go through ui_window_t function pointer 2016-06-06 07:39:31 +02:00
twinaphex ca6f539ff5 (iOS) Prevent unused variable 'buf' warning 2016-06-05 07:02:44 +02:00
twinaphex 80b194f491 (Cocoa) Cleanups 2016-06-04 08:20:39 +02:00
Twinaphex 860fb1d525 (Cocoa) Implement ui_window_cocoa_set_title 2016-06-04 08:09:55 +02:00
twinaphex 492818deed (d3d_ctx.cpp) Use set_title function 2016-06-04 06:07:11 +02:00
twinaphex d739e4771e Use set_title function from wgl_ctx.cpp 2016-06-04 06:02:15 +02:00
twinaphex f490b2b58a Simplify win32_monitor_from_window 2016-06-04 05:54:33 +02:00
twinaphex 5eb43846da Prevent explicit NULL dereferenced warnings 2016-06-01 04:14:48 +02:00
twinaphex cf91d006b3 BB10 starts again 2016-05-31 05:16:35 +02:00
twinaphex 72d37e3917 Fix unreachable code 2016-05-24 21:48:32 +02:00
twinaphex c17315cd27 (DRM) Prevent double free and prevent dereference before NULL check 2016-05-23 22:30:01 +02:00
Lionel Flandrin b7d5c1d3e8 potential fix for AMD and GL core contexts 2016-05-20 20:12:41 +02:00
twinaphex c104bc094b (QNX) Fix egl_create_surface call 2016-05-19 20:07:03 +02:00
Twinaphex 85331042be (QNX) Build fixes 2016-05-19 20:02:39 +02:00
twinaphex 0433d3ca6e (WGL) Make context driver more modular 2016-05-16 08:34:56 +02:00
twinaphex 822d66f401 (WGL) Avoid some warnings 2016-05-16 08:25:14 +02:00
twinaphex 0d833c903a Merge remote-tracking branch 'origin/vulkan-windows' 2016-05-16 07:51:01 +02:00
twinaphex 21438fc0af Some buildfixes for GL_DEBUG 2016-05-12 02:58:09 +02:00
twinaphex 5845a9944d Add more HAVE_THREADS ifdefs 2016-05-11 19:02:43 +02:00
twinaphex b20d550cc4 Rename video context driver functions 2016-05-08 20:32:56 +02:00
Torsten Paul 1979ea52d2 Suppress screensaver only if requested by user settings. 2016-05-08 19:22:45 +02:00
Hans-Kristian Arntzen 66c4f608e6 Clear out rest of video_driver_ctl use. 2016-05-08 14:10:28 +02:00
Hans-Kristian Arntzen d723411436 De ioctl video_driver. 2016-05-08 14:00:51 +02:00
Torsten Paul ccb224043b Initialize window name at window creation time (fixes #1521).
The protocol error reported in #1521 is caused by two different issues.
First xdg-screensaver fails to parse decimal values for the window id
(https://bugzilla.redhat.com/show_bug.cgi?id=1274931). Using the hex
notation fixes this part.

Second, the script reads the WM_NAME property from the window which is
not yet available at this time. Calling x11_update_window_title() early
ensures the property is set when xdg-screensaver is run.
2016-05-06 00:17:47 +02:00
twinaphex 78cbf97e70 Another fix 2016-05-05 17:58:58 +02:00
twinaphex 493ad4dfb8 (WGL) Typo buildfix 2016-05-05 17:50:26 +02:00
twinaphex 60233d1abb Add set_flags to context driver 2016-05-05 17:35:28 +02:00
twinaphex 400f50ddac Comment this out for now until we fundamentally fix it 2016-05-05 05:58:40 +02:00
twinaphex 8136683ffc (context drivers) Start exposing core GL flag 2016-05-05 05:46:00 +02:00
twinaphex a0425dfb14 (Context drivers) Add get_flags function 2016-05-05 05:35:35 +02:00
twinaphex 53fc458795 (Cocoa) Store idiom type inside unsigned variable 2016-05-02 14:53:23 +02:00
Twinaphex fab90f4b96 (iOS) Avoid warning for unhandled CarPlay enum value 2016-05-02 01:55:02 +02:00
Hans-Kristian Arntzen 406f084c4b Vulkan: Set g_inited in Windows. 2016-03-29 18:02:32 +02:00
Hans-Kristian Arntzen e04bbfbae2 Vulkan: Add more logging ... 2016-03-29 17:57:13 +02:00
Hans-Kristian Arntzen 02736963bc Vulkan: Implement get_context_data callback in Win32.
Also fix some potential crashes with dinput handling.
2016-03-29 15:50:12 +02:00
Hans-Kristian Arntzen 8ade7fb274 Vulkan: Attempt Windows backend support.
Completely bind since I cannot test myself, but compiles.
2016-03-29 15:50:12 +02:00
twinaphex 1b289c0f05 (libretro-common) Update 2016-03-24 04:23:17 +01:00
twinaphex e41127459e Rename 'filestream' functions 2016-03-24 04:09:25 +01:00
twinaphex 3720cf87e7 Rename retro_file to file_stream 2016-03-20 16:29:14 +01:00
twinaphex 93b7dc1bdd (libretro-common) move 'lists' files to lists/ 2016-03-20 14:53:54 +01:00
Alcaro f8c31dd56a No point checking this twice. 2016-03-18 17:19:30 +01:00
Alcaro ba90c4afaf Fix some use-after-free holes. 2016-03-18 17:18:45 +01:00
Alwin Garside 36117750af Merge branch 'master' of https://github.com/libretro/RetroArch 2016-03-13 15:30:41 +01:00
Alwin Garside 97b60b1e20 Fixed emscripten build 2016-03-13 15:30:30 +01:00
twinaphex 8467ce114c (Android) Followup to earlier commit 2016-03-12 08:53:27 +01:00
twinaphex 432d7a358a (Android) Move Android-specific Moto G2 DPI workaround to android graphics context
driver
2016-03-12 08:52:29 +01:00
Jean-André Santoni 0863a8eb84 Reorder static functions in vivante context 2016-03-12 04:29:26 +07:00
Jean-André Santoni a16ce4a146 Fix a typo in mali_fbdev_ctx 2016-03-10 01:50:30 +07:00
twinaphex 64a77af881 Use RARCH_DISPLAY_CTL_HW_CONTEXT_GET directly instead of
going through video_driver_callback
2016-03-04 20:49:55 +01:00
Christopher Bransden 2d0c02d21e Fix compilation error:
gfx/drivers_context/vc_egl_ctx.c:591:13: error: static declaration of ‘gfx_ctx_vc_set_swap_interval’ follows non-static declaration
gfx/drivers_context/vc_egl_ctx.c:312:4
2016-03-02 21:31:56 +00:00
twinaphex 0f8e31cad3 (iOS) Use -1 instead of UIUserInterfaceIdiomUnspecified for backwards
compatibility
2016-03-02 17:25:13 +01:00
twinaphex 702d4f9e3a (Android) Buildfix 2016-03-01 22:26:57 +01:00
twinaphex efb1c88215 (opendingux_fbdev_ctx.c) Another ifdef 2016-03-01 22:23:40 +01:00
twinaphex f3cc1a9b59 (opendingux_fbdev_ctx.c) More HAVE_EGL ifdefs 2016-03-01 22:23:17 +01:00
twinaphex ac584330bb (Android) Bugfix 2016-03-01 21:58:35 +01:00
twinaphex 1b0a9d0b1d Backport Opendingux/GCW Zero patches courtesy of gama.coder 2016-03-01 21:50:23 +01:00
twinaphex c44107949d (Vulkan) Pass width and height to vulkan_surface_create 2016-03-01 18:35:41 +01:00
twinaphex 5f125bc1f6 (Android) Only need to pass window for Android 2016-03-01 18:22:17 +01:00
twinaphex eaa0b08bc2 (Android) Hook up Vulkan for gfx_ctx_bind_api 2016-03-01 18:21:09 +01:00
twinaphex b8c1e31c13 (Android/Vulkan) Start hooking up Vulkan for Android context driver 2016-03-01 18:16:22 +01:00
twinaphex dc12f07a55 (mali_fbdev) Add some ifdefs 2016-03-01 07:17:57 +01:00
twinaphex 59ed4b939f Cleanups 2016-03-01 07:09:55 +01:00
twinaphex 47fddf28e5 (Emscripten context) Cleanups 2016-03-01 07:07:56 +01:00
twinaphex 32c4f13761 (XEGL) Add HAVE_VG ifdefs 2016-03-01 06:56:41 +01:00
twinaphex e938be3747 Have to rewrite EGL context code 2016-03-01 06:49:05 +01:00
twinaphex ae6302ede2 (Android EGL context) Add missing break 2016-03-01 05:09:07 +01:00
twinaphex 00741d06fb Add android_gfx_ctx_bind_hw_render 2016-03-01 05:08:18 +01:00
twinaphex c5667d8253 (Android EGL context) Refactor more code 2016-03-01 05:07:11 +01:00
twinaphex 2480181469 (Android) Add android_api variable 2016-03-01 04:53:48 +01:00
twinaphex 481196c55c Add some more ifdefs 2016-03-01 04:19:33 +01:00
twinaphex f8f2f7d03c Rename androidegl_ctx.c to android_ctx.c 2016-03-01 04:18:43 +01:00
twinaphex 0ec1c5ade5 Start adding HAVE_OPENGLES ifdefs to androidegl_ctx.c 2016-03-01 04:17:02 +01:00
twinaphex 65b628cf20 Cover more edge cases for crashes initiated by Zarch 2016-02-29 01:49:58 +01:00
Twinaphex ea2094126b (iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix 2016-02-26 14:25:57 +01:00
twinaphex 4dfed7e930 Cast to NSOpenGLContext * 2016-02-26 13:39:01 +01:00
twinaphex dcefb740f2 Create glcontext_get_ptr 2016-02-26 13:36:12 +01:00
twinaphex c4b80e0e44 Fix CXX_BUILD - doesn't like a variable being named 'template' 2016-02-23 17:11:30 +01:00
Alcaro 7a6463a300 Add escape hatch if rarch (or the core) is in an infinite loop. 2016-02-23 16:11:39 +01:00
twinaphex 6f6ba98576 (DRM) Add more HAVE_EGL ifdefs 2016-02-23 01:34:28 +01:00
twinaphex 6429bb6a40 (X context) rename g_api to x_api 2016-02-22 13:29:32 +01:00
twinaphex e688770e64 (SDL GL Ctx) Rename g_api to sdl_api 2016-02-22 13:26:26 +01:00
twinaphex f8a2014b7e (DRM) Rename g_drm to drm 2016-02-22 13:25:48 +01:00
twinaphex aa4015837f (DRM) DRM context driver should compile now without OpenGL 2016-02-22 13:04:34 +01:00
twinaphex d537b6ee9f Rename some files 2016-02-22 13:01:16 +01:00
twinaphex 1a5d2ce85c Start divorcing DRM context from EGL 2016-02-22 12:59:13 +01:00
twinaphex 85804838ad (DRM) More refactors 2016-02-22 12:56:16 +01:00
twinaphex 09fba6016b (DRM) Cleanups 2016-02-22 12:50:45 +01:00
twinaphex 034f1769c9 (DRM) Cleanups 2016-02-22 12:43:18 +01:00
twinaphex cc622b6905 Start getting rid of 'egl' namespace conventions in drm_egl context
driver
2016-02-22 12:37:38 +01:00
twinaphex ef1feca097 Some C89_BUILD fixes 2016-02-22 12:25:41 +01:00
twinaphex 47b34b38d2 (DRM) More HAVE_EGL ifdefs 2016-02-22 12:10:23 +01:00
twinaphex 22a677b3a8 Don't use egl_common's 'api' variable anymore 2016-02-22 11:54:19 +01:00
twinaphex fd7a62f5ca (Wayland) Context driver doesn't use egl api anymore 2016-02-22 11:48:17 +01:00
twinaphex a8a871bd4e (DRM) Create drm_api 2016-02-22 11:47:18 +01:00
twinaphex e4935d490c (DRM) Uses its own sighandler and atomic quit variable 2016-02-22 11:46:08 +01:00
twinaphex 3bebc2284f DRM gets its own interval variable inside data struct 2016-02-22 11:42:36 +01:00
twinaphex b421bdf687 (drm_egl_ctx.c) More ifdefs 2016-02-22 11:37:37 +01:00