projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added generic color dialog to setup
[wxWidgets.git]
/
src
/
mac
/
dc.cpp
diff --git
a/src/mac/dc.cpp
b/src/mac/dc.cpp
index 669a5bf5261c805ee0b1b6b9908d7c59a63e279a..acad87440d2c876e6f80bce00e957ce6ddc59faf 100644
(file)
--- a/
src/mac/dc.cpp
+++ b/
src/mac/dc.cpp
@@
-1276,10
+1276,9
@@
wxCoord wxDC::GetCharWidth(void) const
MacInstallFont() ;
- FontInfo fi ;
- ::GetFontInfo( &fi ) ;
+ int width = ::TextWidth( "n" , 0 , 1 ) ;
- return YDEV2LOGREL(
(fi.descent + fi.ascent) / 2
) ;
+ return YDEV2LOGREL(
width
) ;
}
wxCoord wxDC::GetCharHeight(void) const