Skip drawing RAM Watch OSD outside window bounds
This commit is contained in:
parent
eb5ebda53f
commit
32e36e28bb
|
@ -172,6 +172,7 @@ namespace BizHawk.Client.Common
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var point = GetCoordinates(g, text.Position, text.Message);
|
var point = GetCoordinates(g, text.Position, text.Message);
|
||||||
|
if (point.Y >= g.ClipBounds.Height) continue; // simple optimisation; don't bother drawing off-screen
|
||||||
g.DrawString(text.Message, MessageFont, text.ForeColor, point.X, point.Y);
|
g.DrawString(text.Message, MessageFont, text.ForeColor, point.X, point.Y);
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
|
Loading…
Reference in New Issue