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
22ae3bd1
Commit
22ae3bd1
authored
Jun 24, 2002
by
Huw D M Davies
Committed by
Alexandre Julliard
Jun 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
psdrv doesn't care about hGCClipRgn, just use GetClipRgn instead.
parent
4aa2c81d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
clipping.c
dlls/wineps/clipping.c
+16
-10
No files found.
dlls/wineps/clipping.c
View file @
22ae3bd1
...
...
@@ -27,30 +27,36 @@ WINE_DEFAULT_DEBUG_CHANNEL(psdrv);
/***********************************************************************
* PSDRV_SetDeviceClipping
*/
VOID
PSDRV_SetDeviceClipping
(
PSDRV_PDEVICE
*
physDev
,
HRGN
hrgn
)
VOID
PSDRV_SetDeviceClipping
(
PSDRV_PDEVICE
*
physDev
,
HRGN
ignored
)
{
CHAR
szArrayName
[]
=
"clippath"
;
DWORD
size
;
RGNDATA
*
rgndata
;
RGNDATA
*
rgndata
=
NULL
;
HRGN
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
BOOL
empty
;
TRACE
(
"hdc=%04x
\n
"
,
physDev
->
hdc
);
empty
=
!
GetClipRgn
(
physDev
->
hdc
,
hrgn
);
/* We really shouldn't be using initclip */
PSDRV_WriteInitClip
(
physDev
);
if
(
!
empty
)
{
size
=
GetRegionData
(
hrgn
,
0
,
NULL
);
if
(
!
size
)
{
ERR
(
"Invalid region
\n
"
);
return
;
goto
end
;
}
rgndata
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
!
rgndata
)
{
ERR
(
"Can't allocate buffer
\n
"
);
return
;
goto
end
;
}
GetRegionData
(
hrgn
,
size
,
rgndata
);
PSDRV_WriteInitClip
(
physDev
);
/* check for NULL region */
if
(
rgndata
->
rdh
.
nCount
==
0
)
{
...
...
@@ -84,10 +90,10 @@ VOID PSDRV_SetDeviceClipping( PSDRV_PDEVICE *physDev, HRGN hrgn )
PSDRV_WriteArrayPut
(
physDev
,
szArrayName
,
i
*
4
+
3
,
pRect
->
bottom
-
pRect
->
top
);
}
PSDRV_WriteRectClip2
(
physDev
,
szArrayName
);
}
HeapFree
(
GetProcessHeap
(),
0
,
rgndata
);
return
;
}
end:
if
(
rgndata
)
HeapFree
(
GetProcessHeap
(),
0
,
rgndata
);
DeleteObject
(
hrgn
);
}
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