r=mkaply, a=brendan
No need to use these APIs - we have access to the widget HWND
This commit is contained in:
mkaply%us.ibm.com 2000-07-24 22:30:18 +00:00
parent dad721d2d2
commit ba0eabbe17

View File

@ -189,7 +189,7 @@ nsresult nsFontMetricsOS2::RealizeFont()
strcpy( szFamily, "System Proportional");
// 2) Get a representative PS for doing font queries into
HPS hps = mContext->GetRepresentativePS();
HPS hps = WinGetPS((HWND)mContext->mWidget);
// 3) Work out what our options are wrt. image/outline, prefer image.
BOOL bOutline = FALSE, bImage = FALSE;
@ -354,7 +354,7 @@ nsresult nsFontMetricsOS2::RealizeFont()
GpiSetCharSet( hps, LCID_DEFAULT);
if( !GpiDeleteSetId( hps, 1))
PMERROR( "GpiDeleteSetID (FM)");
mContext->ReleaseRepresentativePS( hps);
WinReleasePS(hps);
return NS_OK;
}