Commit Graph

250 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
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 666534cc74 Grab settings pointer only once inside wrapper 'input_driver' function 2017-01-16 00:14:10 +01:00
twinaphex 1fa3475d79 Add parameter to video_context_driver's 'init' function 2017-01-13 16:52:07 +01:00
twinaphex 80f79130c0 Update set_video_mode context driver callback function 2017-01-11 06:35:50 +01:00
Twinaphex 476c047f85 (OSX) Buildfix 2017-01-09 16:16:59 +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 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
twinaphex 1b9a067bcc Move code to apple_compat.h 2016-09-14 14:10:39 +02:00
twinaphex 6f47289ba6 Start adding HAVE_CONFIG_H to gfx/drivers_context 2016-09-06 19:39:02 +02:00
twinaphex aa15fb3f91 Update remaining video context drivers 2016-08-31 15:02:07 +02:00
Twinaphex 1586214876 (OSX) Fix text title inside window 2016-07-16 15:01:06 +02:00
Twinaphex 1e91689919 (iOS) Fix FPS reporting 2016-06-22 17:42:32 +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
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 60233d1abb Add set_flags to context driver 2016-05-05 17:35:28 +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
twinaphex 0f8e31cad3 (iOS) Use -1 instead of UIUserInterfaceIdiomUnspecified for backwards
compatibility
2016-03-02 17:25:13 +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 0e1d00a85c (CocoaTouch) Cleanup 2016-01-18 22:13:35 +01:00
Twinaphex c68e824eb9 This AVFoundation code needs to work for both iOS and OSX 2016-01-18 13:19:28 +01:00
Phillip Ponson 6ca58a4d6e iOS: Refactoring support for background Music.app. 2016-01-17 19:51:28 -06:00
twinaphex dd239fc85d Add HAVE_AVFOUNDATION ifdefs 2016-01-16 22:02:49 +01:00
Phillip Ponson 48b99b1f48 Fixing a build issue. syntax errors. 😣
.
'
2016-01-16 12:48:33 -06:00
pponso1 212337c7c1 iOS audio support 2016-01-16 11:57:00 -06:00
twinaphex fcc8c5dae7 This is still necessary unfortunately 2016-01-16 16:46:20 +01:00
twinaphex 9f27b9b56d Remove another compile-time ifdef 2016-01-16 16:22:55 +01:00
Twinaphex fbdc30e7bb (OSX) Buildfix 2016-01-16 16:21:39 +01:00
twinaphex b4687fdb2b Check if convertRectToBacking is available at runtime instead
of compile-time
2016-01-16 16:20:19 +01:00
twinaphex a5c83da839 Simplify cocoagl_gfx_ctx_get_video_size 2016-01-16 16:14:25 +01:00
Twinaphex c824f7af15 get_video_size - don't need screen pointer anymore 2016-01-16 13:31:43 +01:00
twinaphex 6a1d423700 (OSX) Cleanup 2016-01-16 13:30:38 +01:00
twinaphex 14ec006412 Cleanup 2016-01-16 13:29:33 +01:00
neville 9a38ec28b0 Get rid of compile-time ifdefs inside get_chosen_screen 2016-01-16 13:23:00 +01:00
Twinaphex 2c42ad3c96 (cocoa_gl_ctx.m) Cleanups 2016-01-16 12:12:07 +01:00
Twinaphex dfe79c3fcd setWantsBestResolutionOpenGLSurface - determine at runtime if we can call
this instead of compile-time
2016-01-16 12:09:50 +01:00
Twinaphex 21dc363e0f backingScaleFactor - cut down on compile-time ifdef - attempt to detect it at runtime 2016-01-16 11:58:36 +01:00
Twinaphex 64fe30281c Cleanup 2016-01-16 11:51:24 +01:00
Twinaphex 302089e8d8 Cleanup 2016-01-16 11:50:44 +01:00
Twinaphex 5a4db266e8 (OSX) Change get_from_selector 2016-01-16 11:49:10 +01:00
Twinaphex 5cc163a10b (OSX) Cleanup 2016-01-16 11:40:48 +01:00
Twinaphex 794bcc53c3 (iOS) Buildfix 2016-01-15 23:15:49 +01:00
twinaphex 09a183df3f (OSX) Create get_backing_scale_factor 2016-01-15 22:15:23 +01:00
twinaphex e920e5f1b9 Add early return in case settings is NULL 2016-01-15 15:38:21 +01:00
twinaphex 039e2acc49 Make switch stop complaininig 2016-01-15 14:08:38 +01:00
twinaphex 5f513d2af0 (cocoa_gl_ctx.m) Cleanups 2016-01-15 14:03:56 +01:00
Twinaphex 58ebbdeada Attempt to prevent race issue in get_chosen_screen 2016-01-15 13:58:16 +01:00
Twinaphex 26bcfa8d89 Revert "Refactor function get_float_from_selector - obsolete"
This reverts commit 1b2632e7fa.
2016-01-15 13:03:40 +01:00
twinaphex 1b2632e7fa Refactor function get_float_from_selector - obsolete
hardcoded ifdef
2016-01-15 12:53:33 +01:00
Twinaphex 50a7686931 (iOS) Fix ARC issues 2016-01-14 07:03:35 +01:00
twinaphex 3eb6ef0251 (OSX 10.6) Buildfix 2016-01-13 21:21:11 +01:00
twinaphex 54f46f4ee3 Update headers 2016-01-10 04:41:52 +01:00
twinaphex 3b8932b302 Turn returntype of set_resize into bool 2016-01-07 00:58:33 +01:00
Higor Eurípedes 7dcecc500f (cocoa) Fix warning 2015-12-08 17:33:59 -03:00
Higor Eurípedes c257374dcd (video_context_driver) Make better use of the data argument in context calls 2015-12-08 12:19:08 -03:00
twinaphex 2d55dc3bda Complete namespace changes 2015-12-07 15:32:14 +01:00
Twinaphex 5974f81ed8 (OSX) Buildfixes 2015-11-23 12:07:00 +01:00
twinaphex 85dbeeb8f9 No more video_monitor.h 2015-11-22 13:32:46 +01:00
Twinaphex 5ce92ca3d0 (iOS) Just omit this - not sure if we actually need to set it to NULL 2015-11-16 04:22:54 +01:00
Twinaphex 5fc267d24a (OSX/iOS) get_chosen_screen buildfixes 2015-11-14 22:26:07 +01:00
twinaphex ae7d9222e2 Try to not reference UIScreen directly 2015-11-05 22:17:02 +01:00
Twinaphex 51426f64c2 Revert "Add OSX implementation for cocoagl_gfx_ctx_get_native_scale"
This reverts commit a408a5e59a.
2015-11-01 12:45:36 +01:00
twinaphex a408a5e59a Add OSX implementation for cocoagl_gfx_ctx_get_native_scale 2015-11-01 12:15:21 +01:00
twinaphex 5e3a79b74b (cocoa_gl_ctx.m) Put in retro_assert.h 2015-09-01 12:02:04 +02:00
twinaphex f02f1ebc8f (OSX) setWantsBestResolutionOpenGLSurface - OSX 10.7 and up 2015-07-18 15:46:48 +02:00
twinaphex 5bc03fb3a8 backingScaleFactor OSX 10.7 and up 2015-07-18 15:41:14 +02:00
twinaphex 43c8f282db (Gfx) Cleanups 2015-06-13 02:10:06 +02:00
hunterk 664956c53d ifdef the retina stuff for backward compatibility 2015-06-12 13:56:34 -05:00
hizzlekizzle d5a6a1d4a6 remove dpi hack
the existing method works fine on later release targets, so we just need to remember to set those.
2015-06-12 13:12:43 -05:00
hizzlekizzle 0c792898b8 fix dumb typo 2015-06-12 13:03:34 -05:00
hunterk b4e4af604e fix ugly scaling on Retina Macs 2015-06-12 12:45:29 -05:00
Twinaphex f1c69e79c2 (iOS) Buildfix 2015-06-02 11:14:47 +02:00
neville bfb6001114 (OSX) 10.5 and earlier doesn't have backingScaleFactor, so hardcode it
to 1.0f for those platforms
2015-06-02 09:06:59 +02:00
neville 8151c85980 (OSX) Take out settings window for now entirely 2015-06-02 09:00:27 +02:00
Twinaphex d6a713bb8d Fix some warnings 2015-05-02 19:09:23 +02:00
Twinaphex ada0955642 (Cocoa GL) Refactor set_video_mode some more 2015-04-26 03:01:15 +02:00
Twinaphex 550ab997ee (Cocoa GL) Cleanup 2015-04-26 02:57:53 +02:00
Twinaphex 2ce2bb0a5d (Cocoa) Create stub cocoagl_gfx_ctx_show_mouse 2015-04-26 02:53:50 +02:00
twinaphex c99cd21080 (OSX) Fixes crash on exit/fullscreen toggle with XMB 2015-04-26 00:50:58 +02:00
Jean-André Santoni 558459fb9b (iOS) Fix dpi, still incomplete 2015-04-21 18:58:19 +07:00
Twinaphex c539a66b53 (OSX) Use backingScaleFactor 2015-04-21 13:02:57 +02:00
Twinaphex 000e61dc66 (iOS) 'ret' needs to be passed as pointer 2015-04-21 13:01:21 +02:00
Twinaphex 165b502948 Make get_native_scale code more expandable 2015-04-21 12:57:35 +02:00
Twinaphex 54c6c3eb01 Rename apple_cocoa_gl.m 2015-04-21 11:03:39 +02:00