From 76b23bcf9fb1f8c5724960ac35a30130f844cf70 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 28 Aug 2017 13:18:35 +0200 Subject: [PATCH] Revert "CTimerList: adjust label width in footer dependent by count of buttons" This reverts commit ec598a94b5acfa801005d4281667cbe13fa54adb. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/3dbbd378f0a774905bb9d4d1abf30b612b456eb0 Author: vanhofen Date: 2017-08-28 (Mon, 28 Aug 2017) ------------------ This commit was generated by Migit --- src/gui/timerlist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index 1fe55a361..f51cb68df 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -1420,9 +1420,9 @@ void CTimerList::paintFoot() footer.enableShadow(CC_SHADOW_ON, -1, true); if (timerlist.empty()) - footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, width, footer_height, 2, &(TimerListButtons[1]), width/(2+1)); + footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, width, footer_height, 2, &(TimerListButtons[1])); else - footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, width, footer_height, c, TimerListButtons, width/(c-1)); + footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, width, footer_height, c, TimerListButtons); } void CTimerList::paint()