Advertisement
Guest User

Untitled

a guest
Oct 9th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. unsigned ticker_limit = 35; --->135
  2. --------------------------------------------------------------------------------------------
  3. Kill: (limit text when thumbnail is displayed)
  4.  
  5. if (string_is_empty(entry.value))
  6. {
  7. if (xmb->savestate_thumbnail ||
  8. (!string_is_equal
  9. (
  10. xmb_thumbnails_ident(),
  11. msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF))
  12. && xmb->thumbnail)
  13. )
  14. ticker_limit = 40;
  15. else
  16. ticker_limit = 70;
  17. }
  18. --------------------------------------------------------------------------------------------
  19. word_wrap(entry_sublabel, entry.sublabel, 50); --->85
  20. ...
  21. ticker.len = 35; --->135
  22. --------------------------------------------------------------------------------------------
  23.  
  24. static void xmb_draw_thumbnail(xmb_handle_t *xmb, float *color,
  25. unsigned width, unsigned height, float w, float h, uintptr_t texture)
  26. {
  27. ...
  28.  
  29. coords.vertices = 4;
  30. coords.vertex = NULL;
  31. coords.tex_coord = NULL;
  32. coords.lut_tex_coord = NULL;
  33.  
  34. draw.width = w * 2.5; <---
  35. draw.height = h * 2.5; <---
  36. ...
  37.  
  38. -------------------------------------------------------------------------------------------------
  39. static void xmb_frame(void *data, video_frame_info_t *video_info)
  40. ...
  41. if (xmb->savestate_thumbnail)
  42. xmb_draw_thumbnail(menu_disp_info,
  43. xmb, &coord_white[0], width, height,
  44. xmb->margins.screen.left*4 + xmb->icon.spacing.horizontal + <---
  45. xmb->icon.spacing.horizontal*4 - xmb->icon.size / 4,
  46. xmb->margins.screen.top + xmb->icon.size + xmb->savestate_thumbnail_height* 2.5, <---
  47. xmb->savestate_thumbnail_width, xmb->savestate_thumbnail_height,
  48. xmb->savestate_thumbnail);
  49. else if (xmb->thumbnail
  50. && !string_is_equal(xmb_thumbnails_ident(),
  51. msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF)))
  52. {
  53. #ifdef XMB_DEBUG
  54. RARCH_LOG("[XMB thumbnail] width: %.2f, height: %.2f\n", xmb->thumbnail_width, xmb->thumbnail_height);
  55. RARCH_LOG("[XMB thumbnail] w: %.2f, h: %.2f\n", width, height);
  56. #endif
  57.  
  58. xmb_draw_thumbnail(menu_disp_info,
  59. xmb, &coord_white[0], width, height,
  60. xmb->margins.screen.left*4 + xmb->icon.spacing.horizontal + <---
  61. xmb->icon.spacing.horizontal*4 - xmb->icon.size / 4,
  62. xmb->margins.screen.top + xmb->icon.size + xmb->thumbnail_height* 2.5, <---
  63. xmb->thumbnail_width, xmb->thumbnail_height,
  64. xmb->thumbnail);
  65. }
  66. -------------------------------------------------------------------------------------------------
  67.  
  68. static void xmb_layout_ps3
  69.  
  70. xmb->margins.setting.left = 600.0 * scale_factor * 2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement