Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c73e2d5e
Commit
c73e2d5e
authored
Nov 17, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Reset the visible region in ResetDC.
parent
e4beddb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
dc.c
dlls/gdi32/dc.c
+11
-1
init.c
dlls/wineps.drv/init.c
+0
-4
No files found.
dlls/gdi32/dc.c
View file @
c73e2d5e
...
...
@@ -859,7 +859,17 @@ HDC WINAPI ResetDCW( HDC hdc, const DEVMODEW *devmode )
if
((
dc
=
get_dc_ptr
(
hdc
)))
{
if
(
dc
->
funcs
->
pResetDC
)
ret
=
dc
->
funcs
->
pResetDC
(
dc
->
physDev
,
devmode
);
if
(
dc
->
funcs
->
pResetDC
)
{
ret
=
dc
->
funcs
->
pResetDC
(
dc
->
physDev
,
devmode
);
if
(
ret
)
/* reset the visible region */
{
dc
->
dirty
=
0
;
SetRectRgn
(
dc
->
hVisRgn
,
0
,
0
,
GetDeviceCaps
(
hdc
,
DESKTOPHORZRES
),
GetDeviceCaps
(
hdc
,
DESKTOPVERTRES
)
);
CLIPPING_UpdateGCRegion
(
dc
);
}
}
release_dc_ptr
(
dc
);
}
return
ret
;
...
...
dlls/wineps.drv/init.c
View file @
c73e2d5e
...
...
@@ -401,14 +401,10 @@ BOOL CDECL PSDRV_DeleteDC( PSDRV_PDEVICE *physDev )
HDC
CDECL
PSDRV_ResetDC
(
PSDRV_PDEVICE
*
physDev
,
const
DEVMODEW
*
lpInitData
)
{
if
(
lpInitData
)
{
HRGN
hrgn
;
DEVMODEA
*
devmodeA
=
DEVMODEdupWtoA
(
PSDRV_Heap
,
lpInitData
);
PSDRV_MergeDevmodes
(
physDev
->
Devmode
,
(
PSDRV_DEVMODEA
*
)
devmodeA
,
physDev
->
pi
);
HeapFree
(
PSDRV_Heap
,
0
,
devmodeA
);
PSDRV_UpdateDevCaps
(
physDev
);
hrgn
=
CreateRectRgn
(
0
,
0
,
physDev
->
horzRes
,
physDev
->
vertRes
);
SelectVisRgn
(
physDev
->
hdc
,
hrgn
);
DeleteObject
(
hrgn
);
}
return
physDev
->
hdc
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment