mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fixed GTK GetTextExtent bug
Added resources shell script git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@401 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -457,6 +457,12 @@ void TextValueEditor::showCaret() {
|
||||
dc.SetFont(style().font.toWxFont(1.0));
|
||||
int hi;
|
||||
dc.GetTextExtent(_(" "), 0, &hi);
|
||||
#ifdef __WXGTK__
|
||||
// HACK: Some fonts don't get the descender height set correctly.
|
||||
int charHeight = dc.GetCharHeight();
|
||||
if (charHeight != hi)
|
||||
hi += hi - charHeight;
|
||||
#endif
|
||||
cursor.height = rot.trS(hi);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user