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:
coppro
2007-05-19 21:15:20 +00:00
parent b4c7cfb5bc
commit 9a2b992c06
3 changed files with 33 additions and 3 deletions
+6
View File
@@ -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);
}
}