mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
r=mkaply, a=brendan No need to use these APIs - we have access to the widget HWND
This commit is contained in:
parent
dad721d2d2
commit
ba0eabbe17
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user