Use the already determined hwnd in wxWindowMSW::GetDPI
This commit is contained in:
parent
b39c79cb4a
commit
85a2769ae5
@ -4830,7 +4830,7 @@ wxSize wxWindowMSW::GetDPI() const
|
||||
|
||||
if ( !dpi.x || !dpi.y )
|
||||
{
|
||||
WindowHDC hdc(GetHwnd());
|
||||
WindowHDC hdc(hwnd);
|
||||
dpi.x = ::GetDeviceCaps(hdc, LOGPIXELSX);
|
||||
dpi.y = ::GetDeviceCaps(hdc, LOGPIXELSY);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user