From eb7797daa54e6d0bf9a1cdcf5177706e00c4b098 Mon Sep 17 00:00:00 2001
From: natinusala <natinusala@gmail.com>
Date: Mon, 11 Mar 2019 12:17:48 +0100
Subject: [PATCH] ozone: fix sublabels wrapping

---
 menu/drivers/ozone/ozone_entries.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/menu/drivers/ozone/ozone_entries.c b/menu/drivers/ozone/ozone_entries.c
index 26e97c32a7..66851e9b48 100644
--- a/menu/drivers/ozone/ozone_entries.c
+++ b/menu/drivers/ozone/ozone_entries.c
@@ -248,8 +248,12 @@ void ozone_compute_entries_position(ozone_handle_t *ozone)
       {
          char *sublabel_str = menu_entry_get_sublabel(&entry);
 
-         int sublabel_max_width = video_info_width - (unsigned) ozone->dimensions.sidebar_width - 
+         int sublabel_max_width = video_info_width -
             entry_padding * 2 - ozone->dimensions.entry_icon_padding * 2;
+
+         if (ozone->depth == 1)
+            entry_padding -= (unsigned) ozone->dimensions.sidebar_width;
+
          word_wrap(sublabel_str, sublabel_str, sublabel_max_width / ozone->sublabel_font_glyph_width, false);
 
          lines = ozone_count_lines(sublabel_str);