Small Font Drawing Fix

This commit is contained in:
Gericom 2014-11-19 17:43:56 +01:00
parent 744b3f1b2b
commit 514e62b768

View File

@ -57,8 +57,9 @@ namespace LibEveryFileExplorer.GFX
Height += (int)(LineHeight * Settings.YScale) + Settings.LineSpacing;
}
while (linestart != -1);
Height -= Settings.LineSpacing;
if (Width == 0 || Height == 0) return null;
Height -= Settings.LineSpacing;
Width += 2;
Bitmap b = new Bitmap(Width, Height);
using (Graphics g = Graphics.FromImage(b))
{