Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f46e1d8a
Commit
f46e1d8a
authored
Apr 18, 2000
by
Huw D M Davies
Committed by
Alexandre Julliard
Apr 18, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix return value for OffsetRgn if x and y are 0.
parent
a3d3ff8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
region.c
objects/region.c
+8
-6
No files found.
objects/region.c
View file @
f46e1d8a
...
...
@@ -505,14 +505,17 @@ INT16 WINAPI OffsetRgn16( HRGN16 hrgn, INT16 x, INT16 y )
INT
WINAPI
OffsetRgn
(
HRGN
hrgn
,
INT
x
,
INT
y
)
{
RGNOBJ
*
obj
=
(
RGNOBJ
*
)
GDI_GetObjPtr
(
hrgn
,
REGION_MAGIC
);
if
(
obj
&&
(
x
||
y
))
{
INT
ret
;
TRACE
(
"%04x %d,%d
\n
"
,
hrgn
,
x
,
y
);
if
(
!
obj
)
return
ERROR
;
if
(
x
||
y
)
{
int
nbox
=
obj
->
rgn
->
numRects
;
RECT
*
pbox
=
obj
->
rgn
->
rects
;
TRACE
(
" %04x %d,%d
\n
"
,
hrgn
,
x
,
y
);
if
(
nbox
)
{
while
(
nbox
--
)
{
pbox
->
left
+=
x
;
...
...
@@ -526,11 +529,10 @@ INT WINAPI OffsetRgn( HRGN hrgn, INT x, INT y )
obj
->
rgn
->
extents
.
top
+=
y
;
obj
->
rgn
->
extents
.
bottom
+=
y
;
}
}
ret
=
obj
->
rgn
->
type
;
GDI_HEAP_UNLOCK
(
hrgn
);
return
ret
;
}
return
ERROR
;
}
...
...
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