InputRoll - don't draw a string from the text callback, if it is empty
This commit is contained in:
parent
8c79883544
commit
e46a8a4286
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue