Added shadow_blur property to fonts

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@846 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-05-16 19:26:11 +00:00
parent ec174fc2a7
commit 36c7e3ef43
4 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ void RotatedDC::DrawText (const String& text, const RealPoint& pos, int blur_ra
void RotatedDC::DrawTextWithShadow(const String& text, const Font& font, const RealPoint& pos, double scale, double stretch) {
if (font.hasShadow()) {
SetTextForeground(font.shadow_color);
DrawText(text, pos + font.shadow_displacement * scale, 0, 1, stretch);
DrawText(text, pos + font.shadow_displacement * scale, font.shadow_blur * scale, 1, stretch);
}
SetTextForeground(font.color);
DrawText(text, pos, 0, 1, stretch);