InputRoll - a bit more precise background drawing, might help peformance a bit

This commit is contained in:
adelikat 2019-11-26 16:14:32 -06:00
parent e1b91d13ab
commit 3ddf96563a
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ namespace BizHawk.Client.EmuHawk
// White Background
_renderer.SetBrush(Color.White);
_renderer.SetSolidPen(Color.White);
_renderer.FillRectangle(0, 0, Width, Height);
_renderer.FillRectangle(0, CellHeight, _drawWidth, _drawHeight);
// Lag frame calculations
SetLagFramesArray();
@ -370,7 +370,7 @@ namespace BizHawk.Client.EmuHawk
int bottomEdge = RowsToPixels(0);
// Gray column box and black line underneath
_renderer.FillRectangle(0, 0, Width + 1, bottomEdge + 1);
_renderer.FillRectangle(0, 0, _drawWidth + 1, bottomEdge + 1);
_renderer.Line(0, 0, TotalColWidth.Value + 1, 0);
_renderer.Line(0, bottomEdge, TotalColWidth.Value + 1, bottomEdge);