- small patch to make sure buttons are fully used for strings (when it

doesnt fit), plus the 'user count' button now increases in size when
  amount is larger than 10.
  was report #1049
This commit is contained in:
2004-03-25 13:30:20 +00:00
parent 29baa5026e
commit d82ab2bfc3
2 changed files with 4 additions and 4 deletions

View File

@@ -3354,11 +3354,11 @@ void ui_check_but(uiBut *but)
ui_is_but_sel(but);
/* safety is 4 to enable small number buttons (like 'users') */
if(but->type==NUMSLI || but->type==HSVSLI)
okwidth= -7 + (but->x2 - but->x1)/2.0;
okwidth= -4 + (but->x2 - but->x1)/2.0;
else
okwidth= -7 + (but->x2 - but->x1);
okwidth= -4 + (but->x2 - but->x1);
/* name: */
switch( but->type ) {