Commit Graph

764 Commits

Author SHA1 Message Date
Stuart Carnie
eacd52f009 fix(Metal): improve shader stability
* use MTKView, which handles layer and scaling changes automatically
  between displays
2018-06-23 13:33:27 -07:00
Twinaphex
511044270b Fix iOS build 2018-06-21 08:37:08 +02:00
twinaphex
837cf84fc8 Put this around an ifdef 2018-06-21 08:26:27 +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
Brad Parker
8d886751b9 Merge branch 'master' into qt_grid 2018-05-28 18:16:13 -04:00
Brad Parker
8c6bc4a678 Qt: update UI after loading every 25 grid items, keep grid from mixing up content from multiple playlists if the user switches to a new one before one is finished loading 2018-05-28 18:14:36 -04:00
Stuart Carnie
789933b333 wip: add Vulkan support to Apple platforms 2018-05-13 21:35:23 +02:00
Dwedit
387d4d87eb Fix core selection appearing unnecessarily
Re-order the dialog items in core selection dialog to make the listbox have focus
Removed the "do wm close" stuff.
2018-05-09 21:04:23 -05:00
Dwedit
f3f0d4f787 Unify File Open and File Drag Drop code
* Code in `win32_drag_query_file` was split off into `win32_load_content_from_gui`
* File Open dialog now uses the same code as drag drop instead of the non-working code that was in there before.
* File Dialog and Core Select Dialog show and hide mouse cursor if they were invoked in fullscreen mode
2018-05-09 21:04:23 -05:00
Brad Parker
03e0510fc4 Qt: use guarded pointer for adding grid items to layout, in case playlist is changed (and hence the items get deleted) before they are all added 2018-05-07 14:29:54 -04:00
twinaphex
1e42e8f58c (Qt) Add translatable string for 'Clear' 2018-05-07 15:37:54 +02:00
Brad Parker
649216c700 Qt: add view menu option to change between icon/list views 2018-05-07 02:36:00 -04:00
Brad Parker
faf52937c5 Qt: buildfix 2018-05-07 00:07:12 -04:00
Brad Parker
2a784ae1bc Qt: remove mutex, defer loading of grid items into layout, use guarded pointers for exec() operations, misc cleanup 2018-05-06 20:50:54 -04:00
Tatsuya79
425da219c6
QT remove button ghostly inside highlighting 2018-05-06 17:05:21 +02:00
Brad Parker
de71a4dee7 Qt: general performance improvements, fix crash on switching playlists quickly in grid view, prevent initial loading of grid items from blocking 2018-05-06 01:36:47 -04:00
Brad Parker
d55b1a0ad4 Qt: only check for pending events of the main thread 2018-05-05 23:17:30 -04:00
Brad Parker
c2ad8d47d3 Qt: only check for pending events of the main thread 2018-05-05 22:57:29 -04:00
Brad Parker
8e7e530747 Qt: fix crash on switching playlists quickly 2018-05-05 17:02:03 -04:00
Brad Parker
a082ea7d76 Qt: remove zoom layout margins 2018-05-04 12:05:53 -04:00
Tatsuya79
658ffb8951
QT QSlider styling 2018-05-04 12:11:53 +02:00
Brad Parker
fc3251b6a9 Qt: use non-linear scale for zoom slider 2018-05-03 23:58:15 -04:00
Brad Parker
e372bb5320 Qt: cut maximum zoom slider value in half 2018-05-03 22:10:45 -04:00
Brad Parker
0f2262f065 Qt: fix thumbnail image loading 2018-05-03 22:05:12 -04:00
Brad Parker
6cab8cf139 Qt: fix some grid images not drawing properly 2018-05-03 22:05:12 -04:00
Brad Parker
c10e65e99e Qt: support image playlist in grid layout 2018-05-03 22:05:12 -04:00
Brad Parker
c42ad9fbb9 Qt: respect current zoom level when changing playlists 2018-05-03 22:05:12 -04:00
Brad Parker
758d484874 Qt: use primary screen size divided by 8 for grid item size 2018-05-03 22:05:12 -04:00
Brad Parker
5fa0d75bd7 adjust zoom factors 2018-05-03 22:05:12 -04:00
Brad Parker
8752996018 Qt: add grid zoom slider 2018-05-03 22:05:12 -04:00
Brad Parker
f79ba4885a Qt: threaded grid image loading 2018-05-03 22:05:12 -04:00
Brad Parker
5f7abb068b Qt: initial grid layout work 2018-05-03 22:05:12 -04:00
Tatsuya79
49177bdd93
QT restore preferences if they exist 2018-05-03 13:42:25 +02:00
Brad Parker
4785893847 Qt: select the first visible item, which may not be row 0 2018-05-02 01:16:17 -04:00
Brad Parker
0ed2a5307d Qt: always free string list 2018-05-02 01:16:17 -04:00
Brad Parker
eb549fdc17 Qt: can't get core info if there isn't any 2018-05-01 18:17:28 -04:00
Brad Parker
e3712182bd Qt: only init new UI the first time it is about to be shown 2018-05-01 17:47:12 -04:00
twinaphex
b650d484f4 (Qt) Change label to Clear 2018-05-01 04:35:02 +02:00
Brad Parker
4df26353dd Qt: add option (off by default) to suggest the currently loaded core first 2018-04-30 20:33:28 -04:00
Brad Parker
f2f37a3309 Qt: refocus UI when unloading core/content 2018-04-30 19:52:21 -04:00
Tatsuya79
dbdef08a90
small text style change 2018-04-30 23:02:18 +02:00
Brad Parker
a1aefc901c Qt WIMP GUI 2018-04-30 14:33:05 -04:00
twinaphex
146c94a86a Revert "(iOS) Buildfix"
This reverts commit 15142fd0a9.
2018-04-11 06:12:01 +02:00
twinaphex
15142fd0a9 (iOS) Buildfix 2018-04-10 19:22:39 +02:00
twinaphex
b6764c43db Buildfix 2018-04-09 19:09:00 +02:00
twinaphex
afe77527cd Some cleanups for C89_BUILD 2018-04-09 18:57:39 +02:00
Yoshi Sugawara
c44dd39dd6 Fixed crash when opening content using "open in..", support for keyboard mapper 2018-03-22 22:43:20 -10:00
aliaspider
5549b136c2 (msvc) CXX_BUILD + griffin fixes. 2018-02-05 00:25:03 +01:00
Twinaphex
ef4cc160a5 Update 2018-01-24 05:42:28 +01:00
aliaspider
5db96f35fa (WIN32) various build fixes. 2018-01-20 20:05:32 +01:00
twinaphex
61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +01: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
twinaphex
faab2526c8 Create gl_bind_texture 2017-11-10 03:55:10 +01:00
twinaphex
8238545bef Cleanups 2017-10-04 06:53:47 +02:00
twinaphex
983e160e67 Convert file to C 2017-10-02 07:18:11 +02:00
twinaphex
e66ef15580 Remove another useless wrapper function 2017-10-01 17:17:53 +02:00
twinaphex
4639b2547d Rewrite another function 2017-09-29 19:09:11 +02:00
twinaphex
decea56c03 Rewrite menu_entry_get_path 2017-09-28 06:51:48 +02:00
twinaphex
b8e900cd32 Rewrite menu_entry_get_value 2017-09-28 06:32:49 +02:00
twinaphex
8f1523f659 (ui_win32.c) Style nits/cleanups 2017-09-07 16:42:34 +02:00
Brad Parker
0a1b3fedc0 VC6 support (targets NT 3.51) 2017-09-06 23:03:02 -04:00
Rob Loach
fa75f47995
Fix includes of input_config 2017-08-30 23:14:27 -04:00
twinaphex
00412c9836 More C89_BUILD fixes 2017-08-12 18:02:39 +02:00
twinaphex
9c32d03c1e (Vulkan/Win32) C89_BUILD fixes 2017-08-12 17:56:30 +02:00
twinaphex
805c2ad529 Buildfixes 2017-08-10 21:22:30 +02:00
Brad Parker
5d12368c83 fix extern C usage for msvc2005 2017-08-10 11:42:47 -04:00
twinaphex
dfd2c45454 Go through DragAcceptFiles function pointer for ui_win32_window too 2017-08-09 16:32:08 +02:00
twinaphex
b11620e1eb Add retro_timers.h/retro_math.h 2017-06-28 04:41:38 +02:00
twinaphex
449483206f Revert "New attempt to fix memory leaks of struct retro_system_info"
This reverts commit a1d3dd69dd.
2017-05-30 01:44:49 +02:00
twinaphex
a1d3dd69dd New attempt to fix memory leaks of struct retro_system_info
char variables
2017-05-29 22:24:10 +02:00
twinaphex
3fbed8df27 (Menu) Menu driver no longer uses a duplicate system info
struct
2017-05-28 17:21:57 +02:00
radius
a98c2c38c0 update copyrights 2017-05-23 19:55:47 -05:00
twinaphex
59b3344e72 Combine video_driver.c and video_shader_driver.c 2017-05-18 14:47:24 +02:00
twinaphex
ee8dc151a3 Combine menu_driver.c and menu_navigation.c 2017-05-17 03:00:32 +02:00
twinaphex
126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
twinaphex
bf3188eac4 Combine runloop_ctl and rarch_ctl 2017-05-15 05:06:23 +02:00
twinaphex
e2c7671e9f Create rarch_menu_running/rarch_menu_running_finished 2017-05-15 04:31:40 +02:00
twinaphex
80d9d1f143 Rewrite task_queue 2017-05-14 20:43:48 +02:00
twinaphex
6433cde3c0 Cleanups 2017-05-13 21:06:57 +02:00
twinaphex
42ebe7a7ad Merge runloop.c and retroarch.c 2017-05-11 09:11:46 +02:00
twinaphex
f928e57064 Combine video_context_driver.c and video_driver.c 2017-05-09 01:25:59 +02:00
twinaphex
9fdcd926ad Buildfixes 2017-04-29 02:00:50 +02:00
twinaphex
7bbd20b31d Move int settings 2017-04-28 19:12:48 +02:00
twinaphex
09f108b4a7 (OSX) Buildfix 2017-04-28 15:09:43 +02:00
twinaphex
f50eabb13c (iOS) Buildfixes 2017-04-28 14:29:22 +02:00
twinaphex
cc095e56fc Start refactoring bool variables 2017-04-28 00:53:20 +02:00
twinaphex
ace37d2c7a Cleanups 2017-04-27 01:10:44 +02:00
twinaphex
13e4148996 (Menu) Cleanups 2017-04-23 20:22:41 +02:00
twinaphex
6667560263 (iOS) Buildfix 2017-04-23 14:37:06 +02:00
twinaphex
8e6b7a2751 Rewrite menu_entries function 2017-04-23 13:46:21 +02:00
twinaphex
6ebd4e139e Rewrite more string_is_equal call invocations as memcmp 2017-04-22 08:51:16 +02:00
Twinaphex
b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
twinaphex
c2036e4aed (iOS) App Store versions cannot reference non-public selectors 2017-02-26 07:05:14 +01:00
Brad Parker
4e1b4d051d win32: copy selected file path from browser into core/content buffer 2017-02-21 15:29:16 -05:00
twinaphex
873a07030f (Win32) Buildfix 2017-02-21 17:33:51 +01:00
Twinaphex
2d239779a5 (OSX) Buildfix 2017-02-21 17:30:18 +01:00
twinaphex
d3e8e66b9f Create task_push_load_content_with_current_core_from_companion_ui 2017-02-21 17:29:30 +01:00
twinaphex
96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex
e5b7b83b3f (ui) Style nits 2017-01-17 19:04:42 +01:00
twinaphex
d79fe15e9a Use wcstombs by default instead of relying on preprocessor detection
of Windows version
2017-01-17 10:49:33 +01:00
Brad Parker
e1f4db8081 Win2000 buildfixes 2017-01-16 20:41:08 -05:00
Brad Parker
061c13b84c fix XP runtime error with MinGW 2017-01-16 20:41:08 -05:00
Brad Parker
7c6bf6aaf7 fix msys2 compilation when opengl, vulkan and d3d9 are disabled 2017-01-16 20:41:08 -05:00
Brad Parker
c283c1eaf4 disable shader dialog until video_threaded issues are fixed 2017-01-16 19:26:28 -05:00
twinaphex
aae2b2a276 (ui_win32.c) Further cleanups 2017-01-17 00:59:29 +01:00
twinaphex
1709b6889f (ui_win32.c) Use stdstring.c 2017-01-16 23:32:28 +01:00
twinaphex
1f3409dba8 (ui_win32.c) Some minor cleanups 2017-01-16 23:27:55 +01:00
twinaphex
b3642df33f (ui_cocoa.m) Cleanups 2017-01-16 22:34:36 +01:00
twinaphex
8958e02b54 Don't invoke this at beginning of function 2017-01-16 22:17:44 +01:00
Brad Parker
4d2c767fcc do not zero entire string 2016-12-16 22:30:39 -05:00
Brad Parker
aede680cd7 no need to zero the entire string 2016-12-16 21:17:04 -05:00
Brad Parker
1d2600f5f3 fix memory corruption with windows file dialogs for load core/content 2016-12-16 21:11:08 -05:00
Diego Viola
4fed31fa26 Fix typos 2016-12-11 18:30:01 -02:00
Andrés Suárez
f9c3869b43 Merge branch 'master' into qt 2016-12-11 15:08:19 -05:00
radius
fd84613db5 get this working again 2016-11-19 21:19:56 -05:00
radius
26d0a6f2d0 simplify building 2016-11-19 20:18:44 -05:00
radius
ff3841ed7c get this building again 2016-11-14 21:03:46 -05:00
twinaphex
3d7fbd355e (Apple) Buildfixes 2016-10-22 17:41:26 +02:00
twinaphex
d08668b331 Rollback 4b807b482 - was unnecessary in hindsight anyway 2016-10-22 16:39:55 +02:00
twinaphex
4b807b482f Create runloop_poll 2016-10-20 02:17:17 +02:00
Twinaphex
183dc914c4 (Cocoa) Add stub scrollWheel callback 2016-10-05 02:00:11 +02:00
twinaphex
bf035b634b Updates 2016-10-01 09:49:15 +02:00
twinaphex
0f26cade79 Revert "Update GX/WIn32 builds"
This reverts commit 28a96fbb05.
2016-10-01 08:17:07 +02:00
Twinaphex
f5a38977d8 (OSX) Don't register click if we are on titlebar (we detect this for now
if y of location in windows' position is less than 0
2016-10-01 02:01:01 +02:00
twinaphex
e7513bec62 (Win32) Buildfix 2016-09-30 21:21:32 +02:00
twinaphex
da64bb0f0d (ui_cocoa) Cleanup main loop 2016-09-30 08:17:18 +02:00
twinaphex
28a96fbb05 Update GX/WIn32 builds 2016-09-30 06:39:47 +02:00
twinaphex
228886062b Create path_clear 2016-09-30 04:31:19 +02:00
Twinaphex
bc705b79e1 (OSX) Fix 2016-09-29 09:58:57 +02:00
Twinaphex
f0facb5463 Silence implicit declarations warnings 2016-09-23 03:42:50 +02:00
twinaphex
2d11ea71cc Move runloop_fullpath to paths.c 2016-09-23 03:39:44 +02:00
twinaphex
d96386cd18 (iOS) Buildfix 2016-09-16 20:34:34 +02:00
twinaphex
9726de615b Fix stray icon 2016-09-16 13:03:26 +02:00
twinaphex
8c5eb1b406 (iOS) BUildfix 2016-09-15 21:16:56 +02:00
twinaphex
7ac1ed7e10 Cleanups 2016-09-11 14:54:34 +02:00
twinaphex
164d3b034c Get rid of OSX_PPC 2016-09-09 15:56:56 +02:00
twinaphex
db6171676a Use retro_assert everywhere 2016-09-08 11:59:44 +02:00
twinaphex
82d82110ae Merge system.h with core.h 2016-09-06 06:11:54 +02:00
twinaphex
bf4fd2a864 Update headers for ui/drivers 2016-09-05 18:33:22 +02:00
twinaphex
b4c1927e27 (MSVC 2003) Buildfixes 2006-05-18 13:31:43 +02:00
Brad Parker
e39031cbd0 revert rest of unicode changes 2016-12-03 00:15:29 -05:00
Brad Parker
f725b48555 starting to revert unicode changes 2016-12-03 00:15:29 -05:00
Brad Parker
3b8a81dd31 make existing hard-coded unicode calls switchable back to ansi 2016-12-02 14:34:29 -05:00
Brad Parker
3846ce1837 build fixes for MSVC, start moving back to TCHAR usage so we can switch unicode on and off 2016-12-02 12:54:39 -05: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
Brad Parker
dc99713a9b create unicode window on Windows 2016-11-29 14:34:37 -05:00
Diego Viola
59c99a59e7 Fix typo 2016-11-29 11:23:43 -02:00
twinaphex
a8de87576e (windows) Fixes drag and drop - we have to call this
function directly since the UI companion driver interface at
this point has not yet been initialized
2016-07-16 23:49:44 +02:00
Yoshi Sugawara
d0bced56c2 Merge branch 'master' into ios10_cores_in_app_bundle 2016-07-10 09:03:17 -10:00
Yoshi Sugawara
9173397f08 iOS 10 support: cores need to be in the modules directory of app bundle, added script to code sign cores in modules directory 2016-07-10 09:02:40 -10:00
Alcaro
2dc4f87995 Fix build fail derp 2016-07-10 00:43:52 +02:00
Alcaro
158e4614dd Fill in this thing. 2016-07-09 20:39:38 +02:00
Alcaro
a081cf805f Fix typos 2016-07-07 20:05:08 +02:00
twinaphex
2a9bf91e0d Use MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE 2016-06-29 02:40:05 +02:00
twinaphex
2dddc3fc88 Add FILE_PATH_LPL_EXTENSION 2016-06-26 10:12:28 +02:00
Twinaphex
4b96bfe46e (iOS) Buildfix 2016-06-22 17:19:01 +02:00
twinaphex
02ad99048d Get rid of menu_entry_go_back 2016-06-22 06:55:11 +02:00
twinaphex
75b9a1312d (ui_win32.c) Buildfix 2016-06-20 02:46:25 +02:00
twinaphex
65dff0a03a menu_hash_to_str_enum has now become msg_hash_to_str 2016-06-20 00:31:13 +02:00
Twinaphex
c3e2052ac3 (OSX) Silence warnings 2016-06-17 04:07:00 +02:00
twinaphex
9aece7b695 Replace more menu_hash_to_str usage 2016-06-15 23:31:05 +02:00
neville
35b48bca2c (OSX PPC) Buildfix 2016-06-12 19:38:30 +02:00
Twinaphex
b11bfc8a73 Add ui_companion_driver_get_main_window 2016-06-12 19:29:07 +02:00
twinaphex
cab9e0645c (qt) Add headers 2016-06-10 12:11:28 +02:00
twinaphex
e1733697c3 (Qt) window - Start stub-implementing this 2016-06-10 10:22:49 +02:00
twinaphex
43dbbc20e0 (Qt) Add QtWindow class 2016-06-10 10:15:38 +02:00
twinaphex
0f90a3352b Create Qt5 implementation of msg window 2016-06-10 09:47:16 +02:00
twinaphex
a66a46ca25 Start implementing ui_qt_application.cpp 2016-06-10 08:38:27 +02:00
twinaphex
acf0a74e6d Add ui_qt_application 2016-06-09 20:18:08 +02:00
twinaphex
69f32c3a35 Add qt/ui_qt_window.cpp 2016-06-09 20:11:26 +02:00
twinaphex
b4085b6118 Hide Qt wrapper code behind an ifdef - HAVE_QT_WRAPPER, set this to
1 in Makefile.common in order to use it
2016-06-09 19:51:50 +02:00
twinaphex
c011090ebb ui_application - add initialize 2016-06-09 15:22:03 +02:00
twinaphex
f183fab022 (Win32) Cleanups 2016-06-09 12:37:46 +02:00
twinaphex
50a2091cc6 (Win32) Implement browser window 2016-06-09 12:34:39 +02:00
Twinaphex
4481486071 (OSX) openDocument - cleanup 2016-06-09 10:57:02 +02:00
twinaphex
ac29a2acc2 Free heap variable 2016-06-08 17:56:09 +02:00
Twinaphex
29012aa74f (Cocoa) Cleanups 2016-06-08 17:54:55 +02:00
Twinaphex
5a746e04c2 (OSX) Refactor document loading code 2016-06-08 17:51:05 +02:00
neville
817b63be99 (OSX) Buildfix for pre-OSX 10.6 2016-06-08 17:39:20 +02:00
Twinaphex
1cd441b125 (Cocoa) Reimplement browser loading code 2016-06-08 17:18:48 +02:00
Twinaphex
8088df5f09 Cleanups 2016-06-08 16:39:46 +02:00
Twinaphex
9e5ad14da0 Start implementing untested ui_browser_window_cocoa_open function 2016-06-08 16:11:06 +02:00
twinaphex
d9e61e5153 Add missing file 2016-06-08 15:53:59 +02:00
twinaphex
969ef4b88d Add stub browser window implementations for Win32/Cocoa 2016-06-08 15:51:43 +02:00
twinaphex
0e01a3c84b Add ui_browser_window 2016-06-08 15:47:00 +02:00
twinaphex
d63442ca3b Implement ui_win32_msg_window 2016-06-08 10:19:37 +02:00
twinaphex
47abc22fe9 ui_win32_window.c needs to become a C++ file for DragAcceptFiles 2016-06-08 10:05:48 +02:00
neville
f170856374 (OSX) Fixes 2016-06-08 07:41:59 +02:00
twinaphex
0a7bc4d21f Add 'warning' 2016-06-08 07:27:46 +02:00
twinaphex
615fc0432f Free strdup'ed values 2016-06-08 07:24:26 +02:00
twinaphex
047ffe9d30 Remove apple_display_alert 2016-06-08 07:19:19 +02:00
Twinaphex
6cf905508e Reimplement apple_display_alert to use new ui_msg_window implementation 2016-06-08 07:07:10 +02:00
Twinaphex
aa81c1d82f Start implementing ui_cocoa_msg_window.m 2016-06-08 06:56:42 +02:00
twinaphex
10a25209da (Msg window) Add backends for Win32/Cocoa 2016-06-08 06:33:15 +02:00
twinaphex
a247b16164 Add ui_null_msg_window 2016-06-08 06:29:52 +02:00
twinaphex
20766147a6 Cleanup 2016-06-07 18:04:07 +02:00
twinaphex
3f44ba59eb Add pending_events function callback 2016-06-07 18:02:37 +02:00
twinaphex
dbf59a72bd (ui_win32_application.c) Indenting cleanups 2016-06-07 17:32:37 +02:00
twinaphex
f4c3a41f84 (Win32) Implement application process events 2016-06-07 17:28:51 +02:00
Twinaphex
ba962d5dda Remove poll_iteration 2016-06-07 17:16:16 +02:00