Commit 9fb3f4e0 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

Update the visrgn in ResetDC so that GetClipBox works correctly after

a change in paper size/orientation.
parent df93214a
......@@ -35,6 +35,7 @@
#include "winreg.h"
#include "winspool.h"
#include "winerror.h"
#include "wownt32.h"
#include "heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(psdrv);
......@@ -386,8 +387,12 @@ BOOL PSDRV_DeleteDC( PSDRV_PDEVICE *physDev )
HDC PSDRV_ResetDC( PSDRV_PDEVICE *physDev, const DEVMODEA *lpInitData )
{
if(lpInitData) {
HRGN hrgn;
PSDRV_MergeDevmodes(physDev->Devmode, (PSDRV_DEVMODEA *)lpInitData, physDev->pi);
PSDRV_UpdateDevCaps(physDev);
hrgn = CreateRectRgn(0, 0, physDev->horzRes, physDev->vertRes);
SelectVisRgn16(HDC_16(physDev->hdc), HRGN_16(hrgn));
DeleteObject(hrgn);
}
return physDev->hdc;
}
......
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