Commit 0cfc1c84 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

wineps.drv: Use device resolution specified at DC creation time.

parent 1cf52561
......@@ -153,6 +153,19 @@ static void PSDRV_UpdateDevCaps( PSDRV_PDEVICE *physDev )
PAGESIZE *page;
INT width = 0, height = 0;
if (physDev->Devmode->dmPublic.dmFields & DM_PRINTQUALITY)
{
physDev->logPixelsX = physDev->Devmode->dmPublic.u1.s1.dmPrintQuality;
physDev->logPixelsY = physDev->logPixelsX;
}
else
{
physDev->logPixelsX = physDev->pi->ppd->DefaultResolution;
physDev->logPixelsY = physDev->logPixelsX;
}
if (physDev->Devmode->dmPublic.dmFields & DM_YRESOLUTION)
physDev->logPixelsY = physDev->Devmode->dmPublic.dmYResolution;
if(physDev->Devmode->dmPublic.dmFields & DM_PAPERSIZE) {
LIST_FOR_EACH_ENTRY(page, &physDev->pi->ppd->PageSizes, PAGESIZE, entry) {
if(page->WinPage == physDev->Devmode->dmPublic.u1.s1.dmPaperSize)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment