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:
@@ -43,9 +43,9 @@ void PackageChoiceValueViewer::initItems() {
|
||||
}
|
||||
|
||||
void PackageChoiceValueViewer::draw(RotatedDC& dc) {
|
||||
drawFieldBorder(dc);
|
||||
// draw background
|
||||
if (nativeLook()) {
|
||||
drawFieldBorder(dc);
|
||||
// draw background
|
||||
if (nativeLook()) {
|
||||
dc.SetBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
||||
dc.SetPen(*wxTRANSPARENT_PEN);
|
||||
dc.DrawRectangle(RealRect(0, 0, dc.getWidth(), dc.getHeight()));
|
||||
@@ -67,16 +67,16 @@ void PackageChoiceValueViewer::draw(RotatedDC& dc) {
|
||||
if (image.Ok()) {
|
||||
dc.DrawBitmap(image, RealPoint(0,0));
|
||||
}
|
||||
// draw text
|
||||
// draw text
|
||||
Font& font = style().font;
|
||||
Color font_color = font.color;
|
||||
RealSize margin(0, 0);
|
||||
if (nativeLook()) {
|
||||
font.color = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
|
||||
margin = RealSize(1., 0);
|
||||
Color font_color = font.color;
|
||||
RealSize margin(0, 0);
|
||||
if (nativeLook()) {
|
||||
font.color = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
|
||||
margin = RealSize(1., 0);
|
||||
}
|
||||
dc.SetFont(font, 1.0);
|
||||
RealPoint pos = align_in_rect(ALIGN_MIDDLE_LEFT, RealSize(0, dc.GetCharHeight()), dc.getInternalRect()) + RealSize(17., 0) + margin;
|
||||
dc.DrawTextWithShadow(text, font, pos);
|
||||
dc.DrawTextWithShadow(text, font, pos);
|
||||
if (nativeLook()) font.color = font_color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user