buttons.cpp: -fix skip last button txt

Origin commit data
------------------
Commit: 840ba47db1
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-10-18 (Thu, 18 Oct 2012)
This commit is contained in:
Jacek Jendrzej
2012-10-18 17:11:56 +02:00
parent 9d4a97ea84
commit 313db338c2

View File

@@ -132,7 +132,7 @@ int paintButtons( const int &x,
//workaround for to small screen (1) //workaround for to small screen (1)
int skip_last_button_txt = false; int skip_last_button_txt = false;
if( (w_footer > 0) && ( (w_button*cnt) > (uint) w_footer) ){ if( (w_footer > 0) && ( ((w_button*cnt) + ((cnt -1) * w_space)) > (uint) w_footer) ){
w_button= ((w_footer+w_max_icon)/(cnt)); w_button= ((w_footer+w_max_icon)/(cnt));
skip_last_button_txt = true; skip_last_button_txt = true;
} }