Commit Graph

843 Commits

Author SHA1 Message Date
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