InputRoll - don't draw a string from the text callback, if it is empty

This commit is contained in:
adelikat 2014-08-29 14:30:52 +00:00
parent 8c79883544
commit e46a8a4286
1 changed files with 9 additions and 2 deletions

View File

@ -532,7 +532,10 @@ namespace BizHawk.Client.EmuHawk
int y = j * CellHeight;
var point = new Point(x, y);
QueryItemText(i + startIndex, j, out text);
Gdi.DrawString(text, point);
if (!string.IsNullOrWhiteSpace(text))
{
Gdi.DrawString(text, point);
}
}
}
}
@ -557,7 +560,11 @@ namespace BizHawk.Client.EmuHawk
string text;
var point = new Point(x + CellPadding, (i + 1) * CellHeight); // +1 accounts for the column header
QueryItemText(i + startIndex, j, out text);
Gdi.DrawString(text, point);
if (!string.IsNullOrWhiteSpace(text))
{
Gdi.DrawString(text, point);
}
x += CalcWidth(_columns[j]);
}
}