(svn r15783) -Codechange: make the dropdown draw code pass around the left/right instead of the x and width to make drawing text at offsets easier.

This commit is contained in:
rubidium
2009-03-21 19:31:47 +00:00
parent b3b4be2dde
commit 303a8f9673
6 changed files with 27 additions and 26 deletions

View File

@@ -342,7 +342,7 @@ static int TruncateString(char *str, int maxw)
if (IsPrintable(c)) {
w += GetCharacterWidth(size, c);
if (w >= maxw) {
if (w > maxw) {
/* string got too big... insert dotdotdot, but make sure we do not
* print anything beyond the string termination character. */
for (int i = 0; *ddd_pos != '\0' && i < 3; i++, ddd_pos++) *ddd_pos = '.';