Commit Graph

800 Commits

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