mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
convert to CRLF line endings
This commit is contained in:
@@ -19,15 +19,15 @@ void FontTextElement::draw(RotatedDC& dc, double scale, const RealRect& rect, co
|
||||
if (!text.empty() && text.GetChar(text.size() - 1) == _('\n')) {
|
||||
text = text.substr(0, text.size() - 1); // don't draw last \n
|
||||
}
|
||||
// draw
|
||||
Color font_color = font->color;
|
||||
RealSize margin(0, 0);
|
||||
if (native_look) {
|
||||
font->color = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
|
||||
margin = RealSize(1., 0);
|
||||
// draw
|
||||
Color font_color = font->color;
|
||||
RealSize margin(0, 0);
|
||||
if (native_look) {
|
||||
font->color = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
|
||||
margin = RealSize(1., 0);
|
||||
}
|
||||
dc.SetFont(*font, scale);
|
||||
dc.DrawTextWithShadow(text, *font, rect.position() + margin);
|
||||
dc.DrawTextWithShadow(text, *font, rect.position() + margin);
|
||||
if (native_look) font->color = font_color;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user