Updates to Timer class and a couple of wxDC methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1104,14 +1104,24 @@ void wxDC::EndPage()
|
||||
|
||||
wxCoord wxDC::GetCharHeight() const
|
||||
{
|
||||
// TODO
|
||||
return(8);
|
||||
FONTMETRICS vFM; // metrics structure
|
||||
|
||||
::GpiQueryFontMetrics( m_hPS
|
||||
,sizeof(FONTMETRICS)
|
||||
,&vFM
|
||||
);
|
||||
return YDEV2LOGREL(vFM.lXHeight);
|
||||
}
|
||||
|
||||
wxCoord wxDC::GetCharWidth() const
|
||||
{
|
||||
// TODO
|
||||
return(8);
|
||||
FONTMETRICS vFM; // metrics structure
|
||||
|
||||
::GpiQueryFontMetrics( m_hPS
|
||||
,sizeof(FONTMETRICS)
|
||||
,&vFM
|
||||
);
|
||||
return XDEV2LOGREL(vFM.lAveCharWidth);
|
||||
}
|
||||
|
||||
void wxDC::DoGetTextExtent(
|
||||
|
Reference in New Issue
Block a user