mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 04:48:36 +00:00
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:
parent
242be50f01
commit
a3e33d40a8
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue