}
GreSetDCOwner(ScreenDeviceContext, GDI_OBJ_HMGR_PUBLIC);
- if (! IntCreatePrimarySurface())
+ if (!IntCreatePrimarySurface())
{
return FALSE;
}
NtGdiSelectFont(hSystemBM, NtGdiGetStockObject(SYSTEM_FONT));
GreSetDCOwner(hSystemBM, GDI_OBJ_HMGR_PUBLIC);
+ /* Update the system metrics */
+ InitMetrics();
+
+ /* Set new size of the monitor */
+ UserUpdateMonitorSize((HDEV)gppdevPrimary);
+
/* Update the SERVERINFO */
gpsi->aiSysMet[SM_CXSCREEN] = gppdevPrimary->gdiinfo.ulHorzRes;
gpsi->aiSysMet[SM_CYSCREEN] = gppdevPrimary->gdiinfo.ulVertRes;
gpsi->PUSIFlags |= PUSIF_PALETTEDISPLAY;
}
else
+ {
gpsi->PUSIFlags &= ~PUSIF_PALETTEDISPLAY;
+ }
// Font is realized and this dc was previously set to internal DC_ATTR.
gpsi->cxSysFontChar = IntGetCharDimensions(hSystemBM, &tmw, (DWORD*)&gpsi->cySysFontChar);
gpsi->tmSysFont = tmw;