Commit Graph

304 Commits

Author SHA1 Message Date
twinaphex
a02728fee3 Cleanups 2015-11-29 03:35:19 +01:00
twinaphex
9fd9fd10e8 Create input_x11_common 2015-11-29 03:34:09 +01:00
twinaphex
0044d853f8 Move display_type / display_window etc all to gfx/video_driver.c -
no more dependencies on driver_t
2015-11-29 01:12:49 +01:00
twinaphex
c82fc11ba3 Get rid of now unused win32_video_get_ident 2015-11-28 22:01:44 +01:00
twinaphex
a0aecd097e (Win32) Buildfix 2015-11-28 22:01:02 +01:00
twinaphex
7eb441a50f (Win32) Cut down on code duplication 2015-11-28 22:00:22 +01:00
twinaphex
d810ba607b Get rid of extern "C" for WndProc 2015-11-28 21:55:46 +01:00
twinaphex
c20c6a5438 (Win32) Buildfixes 2015-11-28 21:54:32 +01:00
twinaphex
883179bc40 (Win32) Buildfix 2015-11-28 21:52:09 +01:00
twinaphex
ef3cbed13e Create separate WndProc for GL and D3D 2015-11-28 21:50:28 +01:00
twinaphex
8ce6582fa4 Create drm_wait_flip 2015-11-28 17:16:19 +01:00
Higor Eurípedes
428bc30a61 (gl) Add checks for full npot support 2015-11-27 21:21:23 -03:00
twinaphex
265e36a5d0 Some CXX_BUILD buildfixes 2015-11-28 00:33:01 +01:00
twinaphex
7c52d380bf Move memsetting of fds and evctx to drm_common.c 2015-11-26 18:59:36 +01:00
twinaphex
9c2813a757 Turn a bunch of variables static 2015-11-26 18:49:58 +01:00
twinaphex
25680ec8a6 Create more DRM common functions 2015-11-26 18:47:07 +01:00
twinaphex
60ead8f6b1 Create drm_get_encoder 2015-11-26 18:23:51 +01:00
twinaphex
2693e16f1e (Exynos/DRM EGL context driver) Unify more code 2015-11-26 18:05:27 +01:00
twinaphex
7e08f5d908 Create drm_free 2015-11-26 17:34:35 +01:00
twinaphex
e06121b661 Move more common code to drm_common.c 2015-11-26 17:30:01 +01:00
twinaphex
8f9c652693 Add gfx/common/drm_common.c and gfx_common/drm_common.h 2015-11-26 17:12:06 +01:00
twinaphex
b434689d39 (Win32) Buildfixes 2015-11-23 12:14:53 +01:00
twinaphex
074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex
85dbeeb8f9 No more video_monitor.h 2015-11-22 13:32:46 +01:00
twinaphex
aad6a3a2a6 CXX_BUILD - buildfixes 2015-11-21 12:32:12 +01:00
twinaphex
b69caea6c1 Set g_egl_inited to false after egl_destroy 2015-11-21 09:39:25 +01:00
twinaphex
efa673c7b0 Make g_egl_use_hw_ctx a static variable 2015-11-21 09:37:26 +01:00
twinaphex
2f151896eb use egl_create_surface everywhere 2015-11-20 13:43:05 +01:00
twinaphex
fc0f5f8889 Create egl_create_surface 2015-11-20 13:36:16 +01:00
twinaphex
1101bb34d3 Create g_egl_api/g_egl_inited 2015-11-20 13:27:31 +01:00
twinaphex
f84c58e777 (Android) Start using egl_create_context 2015-11-19 18:25:19 +01:00
twinaphex
033e0ac3ad (drm_egl_ctx.c) Start using egl_create_context 2015-11-19 18:18:44 +01:00
twinaphex
6048025544 (Android) Use egl_init_context too 2015-11-19 17:55:49 +01:00
twinaphex
ad260fcb7b Create egl_init_context 2015-11-19 17:52:25 +01:00
twinaphex
80369a8823 Create egl_install_sighandlers 2015-11-19 15:55:57 +01:00
twinaphex
ad311d3bb0 Set g_egl_quit to 0 at end of egl_destroy 2015-11-19 15:49:49 +01:00
twinaphex
2fe6686ced Create g_egl_quit 2015-11-19 15:47:30 +01:00
twinaphex
774542fc62 Simplify egl_destroy 2015-11-19 15:34:40 +01:00
twinaphex
46fb98e21c Create egl_get_video_size 2015-11-19 15:21:04 +01:00
twinaphex
5aedc1c4ca Create egl_set_swap_interval 2015-11-19 15:16:37 +01:00
twinaphex
00be95159d Create x11_event_queue_check 2015-11-19 15:05:17 +01:00
Twinaphex
61b4236079 Merge pull request #2432 from heuripedes/master
Fix warnings
2015-11-19 14:49:00 +01:00
twinaphex
7b39fd50a3 Create egl_swap_buffers 2015-11-19 14:38:55 +01:00
twinaphex
e2c82900d1 Create egl_bind_hw_render 2015-11-19 14:32:39 +01:00
twinaphex
6dee1fcc92 Move g_use_hw_ctx to egl_common.c 2015-11-19 14:28:21 +01:00
twinaphex
9705dc8d04 Create egl_destroy 2015-11-19 14:23:14 +01:00
twinaphex
36579ae58d Start moving identical state variables to egl_common.c 2015-11-19 14:09:51 +01:00
Higor Eurípedes
ad745a5661 (egl_common) Fix clang warnings 2015-11-19 10:04:18 -03:00
twinaphex
ffbb9d0481 Create generic egl_get_proc_address 2015-11-19 13:24:51 +01:00
twinaphex
50f8634902 Add gfx/common/egl_common.c 2015-11-19 13:16:43 +01:00
twinaphex
2810f82296 x11_common.c - reorder variables 2015-11-19 12:23:49 +01:00
twinaphex
c8130120bc Turn g_x11_has_focus into static variable 2015-11-19 12:23:01 +01:00
twinaphex
655520aeec Create x11_install_quit_atom 2015-11-19 12:18:35 +01:00
twinaphex
e3aba24e42 (X11) Code de-duplication 2015-11-19 12:05:32 +01:00
twinaphex
50cd3bc185 Create x11_colormap_destroy 2015-11-19 11:55:05 +01:00
twinaphex
48495980ba Create x11_window_destroy 2015-11-19 11:49:09 +01:00
twinaphex
268570a108 Make g_x11_xim and g_x11_xic both static 2015-11-19 11:28:41 +01:00
twinaphex
ce2b973beb Create x11_input_ctx_new/x11_input_ctx_destroy 2015-11-19 11:27:41 +01:00
twinaphex
56e5d0bf3e Create g_x11_xim 2015-11-19 11:24:56 +01:00
twinaphex
f868cbab31 Create x11_update_window_title 2015-11-19 11:18:57 +01:00
twinaphex
d23557d38e Start restricting scope of g_x11_has_focus 2015-11-19 11:13:59 +01:00
twinaphex
91144ed53f Turn g_x11_quit into static variable 2015-11-19 11:08:38 +01:00
twinaphex
f364ff0649 Create x11_connect 2015-11-19 11:07:52 +01:00
twinaphex
95a5818ccb Create x11_install_sighandlers 2015-11-19 11:04:17 +01:00
twinaphex
8480bc3c19 Create x11_alive - get rid of some code duplication in xvideo.c 2015-11-19 10:46:16 +01:00
twinaphex
dd3e7f9ddc No more wrapper function for x11_check_window 2015-11-19 10:35:15 +01:00
twinaphex
b50152902a No wrapper functions anymore for x11_get_video_size 2015-11-19 10:29:26 +01:00
twinaphex
9563f40aeb Cleanups 2015-11-19 10:25:07 +01:00
twinaphex
ba1dd31995 Create x11_has_focus 2015-11-19 10:13:09 +01:00
twinaphex
cbaca1bfe1 Create x11_get_video_size 2015-11-19 10:09:19 +01:00
twinaphex
5283c4c13c (GLX) Uses x11_check_window now too 2015-11-19 10:05:54 +01:00
twinaphex
ac6813dc7f Create x11_check_window 2015-11-19 10:02:53 +01:00
twinaphex
025db14dcf (XEGL/GLX) Start using the same global state variables 2015-11-19 10:00:25 +01:00
twinaphex
3f23a23dea move g_has_focus to x11_common.c 2015-11-19 09:51:20 +01:00
twinaphex
c9dc5cf71d Start moving some global variables for X11 context drivers
to x11_common.c
2015-11-19 09:49:37 +01:00
twinaphex
66c15314e2 Get rid of some header files 2015-11-19 08:56:08 +01:00
twinaphex
4d20ea936f (ui_win32.c) Cleanups 2015-11-19 08:52:26 +01:00
twinaphex
ec9ae5f7ac (Win32) Buildfixes 2015-11-19 08:44:02 +01:00
twinaphex
f2f0e7efb2 Move win32_window_init to C code 2015-11-19 08:37:25 +01:00
twinaphex
68750e45b1 shader_dlg_init - some code reuse 2015-11-19 08:34:59 +01:00
twinaphex
9207acd6f2 Expand win32_window_init 2015-11-19 08:30:37 +01:00
twinaphex
9205424ab4 (MSVC) Fix one linking error 2015-11-19 08:20:16 +01:00
twinaphex
b5fa321532 Buildfixes 2015-11-19 08:17:59 +01:00
twinaphex
35cd44cbc4 (Win32) Move more code over to ui_win32.c 2015-11-19 08:16:31 +01:00
twinaphex
25bbd3b572 Move win32_resource.h 2015-11-19 07:59:10 +01:00
twinaphex
27be8fa045 Revert "Move a lot of code over to ui/drivers/ui_win32.c"
This reverts commit 37f4f5ec3d.
2015-11-19 07:53:00 +01:00
twinaphex
37f4f5ec3d Move a lot of code over to ui/drivers/ui_win32.c 2015-11-19 07:48:56 +01:00
twinaphex
407ae37aab Move win32_browser over to ui_win32.c 2015-11-19 07:37:22 +01:00
twinaphex
77dc59e9d5 (gfx/common/win32_common.cpp) Cleanup 2015-11-19 07:27:55 +01:00
twinaphex
6c8b59de76 (win32_common.cpp) Add #ifndef _XBOX 2015-11-18 14:20:35 +01:00
twinaphex
7e16e417b4 (Win32) Start using win32_shader_dlg.c for both D3D and GL 2015-11-18 14:19:35 +01:00
twinaphex
588b4259f7 Rename d3d_wrapper to d3d_common 2015-11-18 13:00:13 +01:00
twinaphex
fecdc86475 Create RARCH_MAIN_CTL_SET_WINDOWED_SCALE 2015-11-18 11:55:23 +01:00
twinaphex
2b727fa941 Add RARCH_MAIN_CTL_SET_LIBRETRO_PATH/RARCH_MAIN_CTL_SET_CONTENT_PATH 2015-11-18 11:15:42 +01:00
twinaphex
73990929e5 (WGL) Fix 2015-11-17 23:14:59 +01:00
twinaphex
89c262c552 (XBOX) Some build fixes 2015-11-17 11:13:46 +01:00
twinaphex
ed0e5c37e2 (XBOX) Some build fixes 2015-11-17 11:11:41 +01:00
twinaphex
7394913f11 (360) WNDCLASSEX not available 2015-11-17 11:02:18 +01:00
twinaphex
3ff5c91e5c (D3D) Cleanups 2015-11-17 10:49:36 +01:00
twinaphex
daaabaa663 (Win32) g_quit no longer has to be exposed outside 2015-11-17 10:18:30 +01:00
twinaphex
bb99dc4e38 Create win32_window_reset 2015-11-17 10:16:16 +01:00
twinaphex
9528738a09 Set g_quit outside of wgl_ctx.cpp 2015-11-17 10:12:23 +01:00
twinaphex
4d7daf5dfd g_hwnd no longer used outside 2015-11-17 09:44:26 +01:00
twinaphex
922b679769 Create win32_get_window 2015-11-17 09:41:18 +01:00
twinaphex
f9e4ec72c4 Revert "(win32_common) No longer expose global variables to outside"
This reverts commit 33884de94c.
2015-11-17 09:33:27 +01:00
twinaphex
33884de94c (win32_common) No longer expose global variables to outside 2015-11-17 09:29:43 +01:00
twinaphex
f76d9c2a0d win32_has_focus - buildfix 2015-11-17 09:02:02 +01:00
twinaphex
3d6f6869f0 Create win32_has_focus 2015-11-17 08:58:49 +01:00
twinaphex
239ae7de53 Move gl_common to gfx/common 2015-11-17 08:01:33 +01:00
twinaphex
9ece4db168 (x11_common.c) Move variables and macros to top 2015-11-16 06:59:23 +01:00
twinaphex
95c1d4d53b (Win32) Blind coding sure sucks 2015-11-12 05:19:00 +01:00
twinaphex
d4f1b6d14a (Win32) Another buildfix 2015-11-12 05:18:13 +01:00
twinaphex
8d0e375de0 (Win32) Buildfixes 2015-11-12 05:17:21 +01:00
twinaphex
105236a543 Create win32_set_video_mode 2015-11-12 05:16:06 +01:00
twinaphex
d3efdf8e5a Move g_restore_desktop to win32_common 2015-11-12 05:14:09 +01:00
twinaphex
9a82d2a956 Create win32_monitor_set_fullscreen 2015-11-12 03:01:50 +01:00
twinaphex
d2006c43c1 Turn g_resized into static variable 2015-11-12 02:57:56 +01:00
twinaphex
9961907d2c (Win32) Make g_pos_x/g_pos_y static 2015-11-12 02:55:26 +01:00
twinaphex
92f68fd614 (Win32) Buildfix 2015-11-12 02:53:01 +01:00
twinaphex
0dce6479c1 Create win32_window_create 2015-11-12 02:51:40 +01:00
twinaphex
cb008b13f8 (D3D) Use the same hwnd variable as WGL 2015-11-12 02:45:16 +01:00
twinaphex
cb5d4b0569 Compile in win32_monitor_ functions for Xbox too but leave them
stub
2015-11-12 01:22:28 +01:00
twinaphex
78b7980b12 Linker fix 2015-11-11 20:30:51 +01:00
twinaphex
1da727cd54 convert keyboard_event_win32 to C++ 2015-11-11 20:23:19 +01:00
twinaphex
5e6983d0da Add extern "C" for win32_handle_keyboard_event 2015-11-11 20:21:16 +01:00
twinaphex
9deeececf1 Turn win32_common and wgl_ctx into C++ 2015-11-11 20:07:06 +01:00
twinaphex
1413d97ab0 (D3D/GL) Use more common code 2015-11-11 19:48:24 +01:00
twinaphex
938dfa775a (D3D/GL) Try to use common code for both 2015-11-11 19:41:32 +01:00
twinaphex
8e08db3446 more buildfixes 2015-11-11 18:29:06 +01:00
twinaphex
3c5f4bd243 Move WndProc to win32_common.c 2015-11-11 18:26:10 +01:00
twinaphex
8f6deb9dac Pass function pointer to win32_window_init too 2015-11-11 18:22:39 +01:00
twinaphex
b40baa6323 Move win32_window_init 2015-11-11 18:16:28 +01:00
twinaphex
e0720cd764 Add mon_id argument to win32_get_monitor_info 2015-11-11 17:47:56 +01:00
twinaphex
8f9218ab1b (Win32) Cleanups 2015-11-11 17:41:20 +01:00
twinaphex
0cb507886a Split up win32_monitor code to win32_common 2015-11-11 17:36:52 +01:00
Twinaphex
756b3de315 (Win32) Create function pointer to PowerSetRequest 2015-10-11 10:57:49 +02:00
twinaphex
ff59f92341 (Win32) Create win32_suppress_screensaver 2015-10-10 08:13:58 +02:00
twinaphex
1acc7226f9 Rearrange headers 2015-09-16 11:24:03 +02:00
twinaphex
f88575633e Cleanups 2015-09-05 20:34:22 +02:00
twinaphex
7f4ddc6775 (win32_common.c) Don't use _WIN32 ifdef 2015-09-05 14:40:01 +02:00
twinaphex
103987fab8 (Win32) Buildfix 2015-07-28 01:02:32 +02:00
Alcaro
febcbc5ce4 C89 cleanups part 2 2015-06-26 17:48:43 +02:00
twinaphex
6e2bea3b38 (Audio/gfx) Cleanups 2015-06-13 01:18:13 +02:00
twinaphex
9ef656dc61 (MSVC) Build fixes 2015-04-20 20:00:39 +02:00
twinaphex
0818b178f9 Rename rarch_main_command to event_command 2015-04-13 11:26:02 +02:00
Twinaphex
de2eb5f972 Rename RARCH_CMD_* to EVENT_CMD_* 2015-04-13 10:29:15 +02:00
twinaphex
b31fd31793 Fix win32_show_cursor 2015-04-11 07:10:35 +02:00
twinaphex
a3e14acaa3 Create win32_check_window 2015-04-10 09:36:03 +02:00
twinaphex
b46c9cea87 Create win32_show_cursor 2015-04-10 09:30:18 +02:00
twinaphex
65310b7699 (Win32) Cleanups/Buildfixes 2015-04-09 05:48:01 +02:00
twinaphex
dc10606b23 Create win32_get_metrics 2015-04-09 05:19:29 +02:00
twinaphex
1f23338ca4 Move win32_common.c to gfx/common 2015-04-09 05:16:02 +02:00
twinaphex
61ca56ae8e Create x11_get_metrics 2015-04-09 05:05:29 +02:00
twinaphex
5e8a78bb25 Move x11_common.c to gfx/common 2015-04-09 05:02:57 +02:00