mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Fixed caret size.
Made delete card button greyed-out with only one card in set (oops) git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@404 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+10
-2
@@ -250,10 +250,18 @@ RealSize RotatedDC::GetTextExtent(const String& text) const {
|
||||
}
|
||||
}
|
||||
double RotatedDC::GetCharHeight() const {
|
||||
int h = dc.GetCharHeight();
|
||||
#ifdef __WXGTK__
|
||||
// See above HACK
|
||||
int extent;
|
||||
dc.GetTextExtent(_("H"), 0, &extent);
|
||||
if (h != extent)
|
||||
h = 2 * extent - h;
|
||||
#endif
|
||||
if (quality == QUALITY_LOW) {
|
||||
return dc.GetCharHeight() / zoom;
|
||||
return h / zoom;
|
||||
} else {
|
||||
return dc.GetCharHeight() / zoom / text_scaling;
|
||||
return h / zoom / text_scaling;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user