Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
83f39cf7
Commit
83f39cf7
authored
26 years ago
by
Pascal Lessard
Committed by
Alexandre Julliard
26 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ScrollDC32 modified to return rect in logical coordinate.
parent
d636446e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
windows/scroll.c
+10
-3
10 additions, 3 deletions
windows/scroll.c
with
10 additions
and
3 deletions
windows/scroll.c
+
10
−
3
View file @
83f39cf7
...
...
@@ -67,8 +67,9 @@ BOOL16 WINAPI ScrollDC16( HDC16 hdc, INT16 dx, INT16 dy, const RECT16 *rect,
/*************************************************************************
* ScrollDC32 (USER32.449)
*
* Both 'rc' and 'prLClip' are in logical units but update info is
* returned in device coordinates.
* Only the hrgnUpdate is return in device coordinate.
* rcUpdate must be returned in logical coordinate to comply with win API.
*
*/
BOOL32
WINAPI
ScrollDC32
(
HDC32
hdc
,
INT32
dx
,
INT32
dy
,
const
RECT32
*
rc
,
const
RECT32
*
prLClip
,
HRGN32
hrgnUpdate
,
...
...
@@ -148,10 +149,16 @@ BOOL32 WINAPI ScrollDC32( HDC32 hdc, INT32 dx, INT32 dy, const RECT32 *rc,
OffsetRgn32
(
hrgn2
,
dx
,
dy
);
CombineRgn32
(
hrgn
,
hrgn
,
hrgn2
,
RGN_DIFF
);
if
(
rcUpdate
)
GetRgnBox32
(
hrgn
,
rcUpdate
);
if
(
rcUpdate
)
{
GetRgnBox32
(
hrgn
,
rcUpdate
);
//Put the rcUpdate in logical coordinate
DPtoLP32
(
hdc
,
(
LPPOINT32
)
rcUpdate
,
2
);
}
if
(
!
hrgnUpdate
)
DeleteObject32
(
hrgn
);
DeleteObject32
(
hrgn2
);
}
}
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment