fixed TextBounds check in d3d and winform

This commit is contained in:
Alexander Eckart committed 2012-03-16 21:14:44 +01:00
1 parent f20a149617
commit aca6087488
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -520,7 +520,7 @@ namespace Vocaluxe.Lib.Draw
CFonts.Height = Height;
CFonts.SetFont(text.Fon);
CFonts.Style = text.Style;
return new RectangleF(text.X, text.Y, CFonts.GetTextWidth(CLanguage.Translate(text.Text)), CFonts.GetTextHeight(text.Text));
return new RectangleF(text.X, text.Y, CFonts.GetTextWidth(CLanguage.Translate(text.Text)), CFonts.GetTextHeight(CLanguage.Translate(text.Text)));
}
#region Basic Draw Methods
+1 -1
View File
@@ -256,7 +256,7 @@ namespace Vocaluxe.Lib.Draw
CFonts.Height = Height;
CFonts.SetFont(text.Fon);
CFonts.Style = text.Style;
return new RectangleF(text.X, text.Y, CFonts.GetTextWidth(CLanguage.Translate(text.Text)), CFonts.GetTextHeight(text.Text));
return new RectangleF(text.X, text.Y, CFonts.GetTextWidth(CLanguage.Translate(text.Text)), CFonts.GetTextHeight(CLanguage.Translate(text.Text)));
}
public void ClearScreen()