Commit Graph

2437 Commits

Author SHA1 Message Date
twinaphex 9185fb3ed1 (RGUI) Cleanups 2017-09-28 08:51:28 +02:00
twinaphex f444ef109f (MUI) Reorder variables 2017-09-28 08:45:42 +02:00
twinaphex 270f35753a reorder XMB variables 2017-09-28 08:42:12 +02:00
twinaphex dfe6035ade Put menu_entry_t on heap inside xmb_draw_items 2017-09-28 07:26:43 +02:00
twinaphex f914a91944 Use menu_entry_get_type_new 2017-09-28 07:15:29 +02:00
twinaphex decea56c03 Rewrite menu_entry_get_path 2017-09-28 06:51:48 +02:00
twinaphex 7adf4ca854 Simplify menu_entry_get_spacing 2017-09-28 06:44:04 +02:00
twinaphex db7e1a4fdf Simplify menu_entry_get_sublabel 2017-09-28 06:37:48 +02:00
twinaphex b8e900cd32 Rewrite menu_entry_get_value 2017-09-28 06:32:49 +02:00
twinaphex c5255b1bff Simplify menu_entry_get_rich_label 2017-09-28 06:19:34 +02:00
twinaphex 2f10fd14d6 Create menu_entry_init/menu_entry_free 2017-09-28 06:02:14 +02:00
twinaphex bb6e4a6633 xmb_draw_items - small cleanups 2017-09-28 05:37:19 +02:00
twinaphex a616fa16f3 Small cleanups 2017-09-28 05:00:22 +02:00
twinaphex 7633141bd6 Try to prevent potential memory leak 2017-09-28 03:53:48 +02:00
twinaphex 8b5f8d8c64 menu_displaylist_info - rewrite path 2017-09-28 03:06:54 +02:00
twinaphex 08ecfc74ec Rewrite info.label 2017-09-28 02:45:03 +02:00
twinaphex 72f42b602f menu_displaylist_info - reduce stack usage - exts no longer
a fixed size path
2017-09-28 01:38:05 +02:00
Mikael Brunnhede a1e9027fe2 Added XMB menu option to show the Settings tab if it has previously been hidden. 2017-09-26 14:41:07 +02:00
twinaphex 88b593e4af (360) Builds again(360) Builds again(360) Builds again(360) Builds
again(360) Builds again(360) Builds again(360) Builds again(360) Builds
again(360) Builds again
2017-09-13 04:33:43 +02:00
twinaphex 170b368044 (360) Some buildfixes 2017-09-13 04:21:00 +02:00
twinaphex 07148293a5 (Xbox) Some buildfixes 2017-09-13 03:18:31 +02:00
twinaphex a532ef3cea (XMB) Prevent memory leak 2017-09-12 04:47:37 +02:00
twinaphex a25f9d291e (XMB) Reduce stack usage 2017-09-12 04:37:58 +02:00
twinaphex 632225ee73 Reduce stack usage 2017-09-11 04:40:35 +02:00
twinaphex ea5538d955 (XMB) Reduce stack size cleanups 2017-09-11 02:37:53 +02:00
twinaphex f722e26167 Cleanups 2017-09-10 23:22:09 +02:00
twinaphex 155d6a23b9 Start using menu_displaylist_info_free 2017-09-10 22:57:26 +02:00
twinaphex 08e3bb2122 (MSVC) Buildfixes 2017-09-10 22:38:03 +02:00
twinaphex 6ec9d643f6 (XMB) Reduce size of sysname 2017-09-09 07:59:53 +02:00
Twinaphex 6d65c5157a remove unused variables 2017-09-09 07:22:25 +02:00
twinaphex 8e53ce6184 (XMB) Get rid of for loops for iterating over shadow coordinates 2017-09-09 06:52:49 +02:00
twinaphex 03009d618e Get rid of loop inside xmb_frame 2017-09-09 06:48:31 +02:00
twinaphex 1b168bc95e Cleanups 2017-09-09 04:31:56 +02:00
twinaphex 330d8dc59e Cleanups 2017-09-09 00:02:38 +02:00
twinaphex ca32013665 Reduce size of some variables 2017-09-08 23:09:16 +02:00
twinaphex 582b688121 Silence some warnings for PS3 2017-09-06 00:21:20 +02:00
Brad Parker 8d525f711a msvc2003 buildfixes 2017-09-03 23:39:25 -04:00
twinaphex 80dc96a8fb CXX_BUILD buildfix 2017-09-04 03:49:23 +02:00
Higor Eurípedes 455349880e (xmb) Fix crash when browsing to small lists 2017-09-03 18:06:38 -03:00
Higor Eurípedes eac68b9d41 (xmb) Limit selection_buf_old to visible items 2017-09-03 16:30:45 -03:00
Higor Eurípedes 6c7a354822 (xmb) Remove xmb->menu_stack_old 2017-09-03 14:51:14 -03:00
twinaphex 67710daf4b Fix initialization from incompatible pointer type 2017-09-03 15:45:18 +02:00
Higor Eurípedes 718eeb4a39 (xmb) Fix memleak
Due to file_list_free()'s behavior of free()ing userdata as if it was a
simple, contiguous structure xmb_node_t's fullpath member wasn't being
free()'d.
2017-09-03 10:25:15 -03:00
Higor Eurípedes a7e6b02107 (xmb) Refactor xmb_copy_node()
xmb_node_t is nowhere as big as it used to be, so copying is fine now.
2017-09-03 10:19:03 -03:00
Higor Eurípedes 65ec1e973a (xmb) Add xmb_free_list_nodes()
Fixes some node->fullpath memleaks.
2017-09-03 09:48:31 -03:00
Higor Eurípedes 1a1e5047e8 (xmb) Fix crash while scanning 2017-09-02 20:21:02 -03:00
Higor Eurípedes 4bfc8f8243 (xmb) Fix crash when toggling the menu 2017-08-31 14:52:54 -03:00
Higor Eurípedes f521a32c00 (xmb) Don't animate more than needed when switching lists 2017-08-30 22:23:29 -03:00
Higor Eurípedes bd96c75bfe (xmb) Make xmb_node_t smaller
Each xmb_node_t instance used over 4KiB of memory even when it didn't
need to. In big list like MAME (30+ thousand entries) RetroArch would
consume over 100MiB (4096 bytes * 30000) just to hold all xmb_node_t
instances.
2017-08-29 22:19:19 -03:00
Twinaphex 4e72be1bb6 Merge pull request #5362 from heuripedes/xmb-improv
Attempt at returning the perf improvement
2017-08-23 07:18:41 +02:00
Higor Eurípedes 972e5c2368 (glui) Cache content height and bbox calculation 2017-08-22 23:37:14 -03:00
Higor Eurípedes 4ae39dab32 (glui) Skip querying and drawing items that are not visible 2017-08-22 23:15:33 -03:00
Higor Eurípedes 70b6f951d3 (xmb) Uncomment xmb_calculate_visible_range() call
I tested the other drivers quickly and the previous commit did not
affect them, so I'm enabling this again.
2017-08-22 22:00:14 -03:00
twinaphex c39332a496 (MaterialUI) Possible to manually set sublabel color too 2017-08-21 06:58:50 +02:00
twinaphex 5506f00018 Tweak icon color for Shield theme 2017-08-21 06:52:50 +02:00
twinaphex d86641e39d (MaterialUI) Go back to the old menu code 2017-08-21 06:43:44 +02:00
Twinaphex 3507f299de Merge pull request #5349 from Alex793/master
(XMB) Regression Fix thumbnail ahead OSK overlay
2017-08-20 23:11:12 +02:00
Brad Parker ebc9ee192b rgui does not support unicode, this prevents a buffer overflow if an unsupported language is set 2017-08-20 14:41:09 -04:00
twinaphex 764f5e22aa (RGUI) Redesign blit_line somewhat 2017-08-20 20:33:03 +02:00
Alex e5adb1056c (XMB) Regression Fix thumbnail ahead OSK overlay 2017-08-20 06:38:23 +02:00
Higor Eurípedes 6bc5cd302a (xmb) Comment out visible item calculation in xmb_draw_items()
Fixes a regression where fading animations didn't render if you were far
into the previous list. This happened because "current" has an incorrect
value thanks to a menu_navigation_set_selection(0) call in
menu_cbs_left.c:162
2017-08-19 11:01:27 -03:00
Higor Eurípedes aaecf82608 (xmb) Skip drawing the fading list when it is already transparent 2017-08-18 22:33:38 -03:00
Jean-André Santoni 6940019102 (XMB) Icon for the rename action 2017-08-18 18:30:31 +07:00
Brad Parker 6c91c39aae glui: fix entry box highlight calculation 2017-08-17 20:49:21 -04:00
Higor Eurípedes 0d59994c42 (xmb) Only iterate over visible items in xmb_render() 2017-08-17 21:36:48 -03:00
Higor Eurípedes ea9991f749 (xmb) Detect non-visible items before drawing 2017-08-17 21:36:48 -03:00
twinaphex 6fc48a39d9 (MaterialUI) Add Menu Icons Enable setting 2017-08-17 21:05:38 +02:00
Brad Parker 9242cdeda9 glui: subtract icon size from word wrap width if one is used 2017-08-17 14:02:41 -04:00
twinaphex 828f4aa8b9 (materialUI) Add disk image append icons 2017-08-17 19:24:23 +02:00
twinaphex a795237898 Add some last-minute icons 2017-08-17 01:03:30 +02:00
Twinaphex 1a3d79b458 Merge pull request #5306 from heuripedes/master
(xmb) Fix crash
2017-08-16 04:20:59 +02:00
twinaphex 5c7fd82a40 Add Music/Image/Video lists for MaterialUI and RGUI 2017-08-16 03:15:04 +02:00
Higor Eurípedes db48561289 (xmb) Fix crash 2017-08-15 21:34:49 -03:00
twinaphex 0d86027cd5 (RGUI) Add Load Content -> Favorites 2017-08-16 01:10:27 +02:00
twinaphex e32ec709b3 Added 'Favorites' to MaterialUI playlists tab 2017-08-16 00:01:56 +02:00
twinaphex 89b695dae3 Tweak Dark Blue a bit 2017-08-15 22:52:18 +02:00
twinaphex ef79711837 (MaterialUI) Hook up framebuffer opacity 2017-08-15 22:43:09 +02:00
twinaphex 5c6b230e42 Start adding separate setting 'framebuffer_opacity' 2017-08-15 22:17:02 +02:00
twinaphex 1887862a03 (MaterialUI) Update 2017-08-15 19:52:50 +02:00
twinaphex c438e556b1 (MaterialUI) Update icons 2017-08-15 19:40:49 +02:00
twinaphex 990f746aee (MaterialUI) Update icons 2017-08-15 19:34:34 +02:00
twinaphex b760a407fd (MaterialUI) Add icons 2017-08-15 19:20:16 +02:00
twinaphex e34f8e0911 Update 2017-08-15 19:05:23 +02:00
twinaphex f1069ee7ed (MaterialUI) Update 2017-08-15 19:02:58 +02:00
twinaphex 573cf1df1a (MAterialUI) use white icons for shield theme 2017-08-15 18:11:47 +02:00
twinaphex 09cf3262f1 (RGUI) Cleanups 2017-08-15 17:56:42 +02:00
twinaphex ade279c0ba (RGUI) Cleanups 2017-08-15 17:51:08 +02:00
r5 31317f7cbf (materialui.c) New struct to hold all theme-related info
Struct should be used to group together variables that
control font/bg/fg/highlight/icon colors.
2017-08-15 16:32:39 +01:00
twinaphex 19efd41164 Add more icons 2017-08-15 10:06:52 +02:00
twinaphex 5de11039c6 Updates 2017-08-15 09:02:55 +02:00
twinaphex aad8e551fe Add more icons 2017-08-15 08:52:04 +02:00
twinaphex 27966879b0 (MaterialUI) Add more icons 2017-08-15 08:16:32 +02:00
twinaphex ea16a51342 Add icons 2017-08-15 07:47:17 +02:00
twinaphex 1bcec096bb Update icons 2017-08-15 07:27:15 +02:00
twinaphex 64686b46b1 Add icons 2017-08-15 07:08:55 +02:00
twinaphex c5c5af0507 Add more icons 2017-08-15 06:42:48 +02:00
twinaphex 14f7ee6116 Add new icons 2017-08-15 06:01:35 +02:00
twinaphex b40f59a6ec (MaterialUI) Add audio icon 2017-08-15 05:42:44 +02:00
twinaphex 28ade72baf (MaterialUI) Cleanups 2017-08-15 05:23:54 +02:00
twinaphex 07dd7c8ccb Cleanups 2017-08-15 05:15:45 +02:00
twinaphex e9d738226a (MaterialUI) Some more refinements 2017-08-15 04:41:17 +02:00
twinaphex db24e4da42 Try to avoid countless string_is_equal function calls
being called multiple times per frame render - prebake
these decisions instead inside list_insert
2017-08-15 04:33:36 +02:00
twinaphex f608ac3556 (MaterialUI) small performance improvements 2017-08-15 03:24:07 +02:00
twinaphex a0859229f9 Locally cache menu_display_get_dpi inside a variable 2017-08-15 03:11:39 +02:00
twinaphex 8fc6427d0e Don't use menu_entries_get_end() inside for loop epilogue 2017-08-15 03:06:40 +02:00
twinaphex 058116b8da Add more labels 2017-08-15 03:00:49 +02:00
twinaphex 00ae975c6f (materialui) Add another icon 2017-08-15 01:21:20 +02:00
twinaphex 28147d8aa6 Add another icon 2017-08-15 01:11:37 +02:00
twinaphex 777308c42c Add icon 2017-08-15 00:35:36 +02:00
twinaphex 736477d4e4 (MaterialUI) Add icons 2017-08-15 00:24:02 +02:00
twinaphex e060029d4c (MaterialUI) Update icons 2017-08-14 23:51:52 +02:00
twinaphex 559fabeb08 (MaterialUI) Add more icons 2017-08-14 23:31:04 +02:00
twinaphex 4c877148fe (MaterialUI) Add image icon 2017-08-14 23:13:25 +02:00
twinaphex 648cf89893 Start using a second icon at the lefthand side 2017-08-14 23:05:51 +02:00
Rob Loach 7c54cebfb3
Merge branch 'master' of github.com:libretro/RetroArch into favorites 2017-08-13 21:20:22 -04:00
Rob Loach e324b4a074
Reorder the View settings 2017-08-13 19:10:09 -04:00
Rob Loach 8e0e99ba66
Add Show Favorites sublabel 2017-08-13 18:44:50 -04:00
Jean-André Santoni c9ad8cd1f9 (XMB) Display the small add-favorite icon 2017-08-14 00:12:55 +02:00
Higor Eurípedes 950b77c0ca (xmb) Speed up xmb_list_insert() and xmb_deep_copy() a bit
This replaces calloc() and memcpy() calls with custom functions to
handle xmb_node_t allocation and copy optimized for the common case.
2017-08-12 22:30:22 -03:00
Higor Eurípedes 9f760af6c6 Menu improvements (#5288)
* (menu_animation) Stop KILL_BY_SUBJECT asap

* (xmb) Don't query mouse/pointer state so many times per frame
2017-08-12 22:53:56 +02:00
Jean-André Santoni f1ccd29e77 (XMB) Display the favorite icon for content 2017-08-12 17:27:31 +02:00
Jean-André Santoni 61cc899867 (XMB) Display the favorites tab, part 1 2017-08-12 16:37:20 +02:00
twinaphex dad0fcbbe8 Get rid of the conditionals 2017-08-11 01:20:57 +02:00
twinaphex 22139dc4a0 Turn menu_animation_ctx_tag into typedef 2017-08-11 01:16:21 +02:00
twinaphex 4e66ec28cb Some more truncation fixes 2017-08-10 23:19:54 +02:00
twinaphex 16f59aba96 Some C89_BUILD fixes 2017-08-10 21:38:57 +02:00
Jean-André Santoni 05558697ca (Lakka) Fix Online Updater 2017-08-09 15:16:27 +02:00
Higor Eurípedes 8d358899df (xmb) Fix segfault when entering certain lists 2017-08-08 22:34:54 -03:00
Higor Eurípedes c0cb042998 (xmb) Improve responsiveness while browsing horizontally 2017-08-08 21:05:00 -03:00
twinaphex 56733c6f18 (xmb) deep list copy - Use malloc instead of calloc 2017-08-07 00:14:37 +02:00
twinaphex 7c1d3991f8 Some C89 buildfixes 2017-08-06 17:12:57 +02:00
Twinaphex ba31285160 Merge pull request #5172 from RobLoach/horizontalperf
Allow Toggling the XMB Horizontal Animation
2017-08-06 16:08:59 +02:00
Brad Parker 6b369775cf add unicode-aware option for word_wrap (only needed for xmb) 2017-08-06 03:33:13 -04:00
Jean-André Santoni 7a20875668 (MUI) More comments 2017-07-31 17:34:10 +02:00
Jean-André Santoni 3566c41b9c (MUI) More comments 2017-07-31 17:31:09 +02:00
Jean-André Santoni aed8ec7741 (MUI) First batch of comments 2017-07-31 17:06:12 +02:00
radius d560660bdc add room type in the title 2017-07-24 20:52:27 -05:00
radius e09075dc25 Add RetroArch version and use different icons for different room types 2017-07-24 20:13:52 -05:00
Rob Loach 7d71746b21
Add Horizontal Animation configuration 2017-07-14 15:11:27 -04:00
Rob Loach 24107229fc
Remove horizontal slide animation for XMB 2017-07-14 14:49:41 -04:00
Jean-André Santoni e08089de48 Fix Lakka updater 2017-06-21 14:16:19 +02:00
twinaphex 66fc9e6a06 Add menu_show_online_updater 2017-06-20 01:42:28 +02:00
Conn 78339ae67c xmb: fix incorrect wallpaper alpha blending 2017-06-19 16:38:09 +01:00
allanin c990a57359 Fixing wrong settings in Nuklear 2017-06-18 05:57:08 +00:00
twinaphex 6af5bd01bf Merge retro_stat and file_path 2017-06-16 15:00:11 +02:00
Conn f413b23f06 xmb: enable menu transparency support when emulation is paused (v2)
Allow xmb menu driver transparency when "Pause when menu activated" is enabled (default setting).
This is also the default behaviour of the rgui driver and is helpful for users to preview
video/shader changes on the fly.

Issues fixed:

gfx/video_driver: enable menu transparency only when game is loaded (as a loaded core can display
                  black or corrupt image)
gfx/video_driver: don't clobber cached frame during driver reinit if game was loaded
                  (fixes missing menu background/paused foreground on full screen toggle)
menu/drivers/xmb: ensure transparency is applied when game is loaded and no shader pipeline active.
menu/menu_driver: explicitly apply transparency only for existing textures (i.e. wallpapers), to
                  avoid background of cores with no content yet loaded mixing with wallpaper.
2017-06-02 02:55:59 +01:00
twinaphex 44b4a4e028 Revert "xmb: enable menu transparency support when emulation is paused"
This reverts commit 17d0037bd5.
2017-06-01 17:21:55 +02:00
Conn 17d0037bd5 xmb: enable menu transparency support when emulation is paused
Allow xmb menu driver transparency when "Pause when menu activated" is enabled (default setting).
This is also the default behaviour of the rgui driver and is helpful for users to preview
video/shader changes on the fly.

Issues fixed:

gfx/video_driver: enable menu transparency only when game is loaded (as a loaded core can display
                  black or corrupt image)
gfx/video_driver: don't clobber cached frame (fixes missing background on full screen toggle)
menu/drivers/xmb: ensure transparency is applied when game is loaded and no shader pipeline active.
menu/menu_driver: explicitly apply transparency only for existing textures (i.e. wallpapers), to
                  avoid background of cores with no content yet loaded mixing with wallpaper.
2017-05-31 23:45:16 +01:00
twinaphex eb8b31df3c Silence some Coverity warnings 2017-05-30 16:44:19 +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