Removed the now redundant TargetZoomFactor scaling for drawRectangle. Drawn shapes now scale nicely. Whether or not text should be drawn this way is a worthwhile discussion IMO, but as zeromus has said, it would require text to be drawn in the same way like shapes.
This commit is contained in:
parent
78a0494708
commit
23b3cedf7d
|
@ -519,10 +519,10 @@ namespace BizHawk.MultiClient
|
|||
{
|
||||
try
|
||||
{
|
||||
int int_x = LuaInt(X) * Global.Config.TargetZoomFactor;
|
||||
int int_y = LuaInt(Y) * Global.Config.TargetZoomFactor;
|
||||
int int_width = LuaInt(width) * Global.Config.TargetZoomFactor;
|
||||
int int_height = LuaInt(height) * Global.Config.TargetZoomFactor;
|
||||
int int_x = LuaInt(X);
|
||||
int int_y = LuaInt(Y);
|
||||
int int_width = LuaInt(width);
|
||||
int int_height = LuaInt(height);
|
||||
g.DrawRectangle(GetPen(line), int_x, int_y, int_width, int_height);
|
||||
if (background != null)
|
||||
g.FillRectangle(GetBrush(background), int_x, int_y, int_width, int_height);
|
||||
|
|
Loading…
Reference in New Issue