wineps.drv: Call ResetDCW() to update Devmode in the Unix interface.

Previously, PSDRV_ResetDC() only updated the devmode contained in the
print context, which could cause the devmode in the unix interface to be
inconsistent with the print context's devmode. This can cause problems
later when PostScript is being outputted, as get_device_caps() in the
unix interface would reference this inconsistent devmode. By calling
ResetDCW() in PSDRV_ResetDC(), these two devmodes remain in-sync.
This commit is contained in:
Danyil Blyschak 2024-06-03 09:58:17 -05:00 committed by Alexandre Julliard
parent 242be50f01
commit a3e33d40a8

View file

@ -467,7 +467,7 @@ BOOL PSDRV_ResetDC( print_ctx *ctx, const DEVMODEW *devmode )
dump_devmode( devmode );
PSDRV_MergeDevmodes( ctx->Devmode, devmode, ctx->pi );
}
return TRUE;
return !!ResetDCW( ctx->hdc, devmode );
}
static PRINTER_ENUM_VALUESW *load_font_sub_table( HANDLE printer, DWORD *num_entries )