wordpad: Don't pass an invalid DC to CreateCompatibleDC.
This commit is contained in:
parent
8a2e787161
commit
2004d2b2f6
|
@ -500,7 +500,7 @@ static void add_ruler_units(HDC hdcRuler, RECT* drawRect, BOOL NewMetrics, long
|
|||
DeleteObject(hBitmap);
|
||||
}
|
||||
|
||||
hdc = CreateCompatibleDC(hdc);
|
||||
hdc = CreateCompatibleDC(0);
|
||||
|
||||
CmPixels = twips_to_pixels(TWIPS_PER_CM, GetDeviceCaps(hdc, LOGPIXELSX));
|
||||
QuarterCmPixels = (int)((float)CmPixels / 4.0);
|
||||
|
|
Loading…
Reference in New Issue