From db17d90b8dca6e53f98377a36f04cf71542ffa66 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Thu, 11 Feb 2016 01:18:47 +0000 Subject: [PATCH] software_widget: fix gap (tnx hidnplayr for report) git-svn-id: svn://kolibrios.org@6192 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/software_widget/software_widget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/cmm/software_widget/software_widget.c b/programs/cmm/software_widget/software_widget.c index b27fe5a26b..73567206ee 100644 --- a/programs/cmm/software_widget/software_widget.c +++ b/programs/cmm/software_widget/software_widget.c @@ -118,14 +118,14 @@ byte draw_icons_from_section(dword key_value, key_name, sec_name, f_name) icon_id, icon_char_pos; + //do not show items located in /kolibrios/ if this directory not mounted + if (!strncmp(key_value, "/kolibrios/", 11)) && (!kolibrios_mounted) return true; + if (col==list.column_max) { row++; col=0; } - //do not show items located in /kolibrios/ if this directory not mounted - if (!strncmp(key_value, "/kolibrios/", 11)) && (!kolibrios_mounted) return true; - if (col==0) DrawBar(0, row * list.item_h + list_pos, Form.cwidth, list.item_h, LIST_BACKGROUND_COLOR); DefineButton(col*list.item_w+6, row*list.item_h + list_pos,list.item_w,list.item_h-5,list.count + 100 + BT_HIDE,0); tmp = list.item_w/2;