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
4d837749
Commit
4d837749
authored
May 11, 2003
by
Ulrich Czekalla
Committed by
Alexandre Julliard
May 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We should pass the callers client-area rect and clip rect to x11drv
otherwise we'll fail to scroll all children.
parent
1bb36454
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
scroll.c
dlls/x11drv/scroll.c
+14
-9
scroll.c
windows/scroll.c
+1
-1
No files found.
dlls/x11drv/scroll.c
View file @
4d837749
...
...
@@ -124,15 +124,19 @@ INT X11DRV_ScrollWindowEx( HWND hwnd, INT dx, INT dy,
INT
retVal
;
BOOL
bOwnRgn
=
TRUE
;
BOOL
bUpdate
=
(
rcUpdate
||
hrgnUpdate
||
flags
&
(
SW_INVALIDATE
|
SW_ERASE
));
HRGN
hrgnClip
=
CreateRectRgnIndirect
(
clipRect
);
HRGN
hrgnTemp
;
HDC
hDC
;
RECT
rc
,
cliprc
;
TRACE
(
"%p, %d,%d hrgnUpdate=%p rcUpdate = %p rect=(%ld,%ld-%ld,%ld) %04x
\n
"
,
hwnd
,
dx
,
dy
,
hrgnUpdate
,
rcUpdate
,
rect
->
left
,
rect
->
top
,
rect
->
right
,
rect
->
bottom
,
flags
);
TRACE
(
"clipRect = (%ld,%ld,%ld,%ld)
\n
"
,
clipRect
->
left
,
clipRect
->
top
,
clipRect
->
right
,
clipRect
->
bottom
);
TRACE
(
"%p, %d,%d hrgnUpdate=%p rcUpdate = %p %s %04x
\n
"
,
hwnd
,
dx
,
dy
,
hrgnUpdate
,
rcUpdate
,
wine_dbgstr_rect
(
rect
),
flags
);
TRACE
(
"clipRect = %s
\n
"
,
wine_dbgstr_rect
(
clipRect
));
GetClientRect
(
hwnd
,
&
rc
);
if
(
rect
)
IntersectRect
(
&
rc
,
&
rc
,
rect
);
if
(
clipRect
)
IntersectRect
(
&
cliprc
,
&
rc
,
clipRect
);
else
cliprc
=
rc
;
if
(
hrgnUpdate
)
bOwnRgn
=
FALSE
;
else
if
(
bUpdate
)
hrgnUpdate
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
...
...
@@ -142,7 +146,7 @@ INT X11DRV_ScrollWindowEx( HWND hwnd, INT dx, INT dy,
{
HRGN
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
X11DRV_StartGraphicsExposures
(
hDC
);
X11DRV_ScrollDC
(
hDC
,
dx
,
dy
,
rect
,
clipRect
,
hrgnUpdate
,
rcUpdate
);
X11DRV_ScrollDC
(
hDC
,
dx
,
dy
,
&
rc
,
&
cliprc
,
hrgnUpdate
,
rcUpdate
);
X11DRV_EndGraphicsExposures
(
hDC
,
hrgn
);
ReleaseDC
(
hwnd
,
hDC
);
if
(
bUpdate
)
CombineRgn
(
hrgnUpdate
,
hrgnUpdate
,
hrgn
,
RGN_OR
);
...
...
@@ -155,9 +159,11 @@ INT X11DRV_ScrollWindowEx( HWND hwnd, INT dx, INT dy,
retVal
=
GetUpdateRgn
(
hwnd
,
hrgnTemp
,
FALSE
);
if
(
retVal
!=
NULLREGION
)
{
HRGN
hrgnClip
=
CreateRectRgnIndirect
(
&
cliprc
);
OffsetRgn
(
hrgnTemp
,
dx
,
dy
);
CombineRgn
(
hrgnTemp
,
hrgnTemp
,
hrgnClip
,
RGN_AND
);
RedrawWindow
(
hwnd
,
NULL
,
hrgnTemp
,
RDW_INVALIDATE
|
RDW_ERASE
);
DeleteObject
(
hrgnClip
);
}
DeleteObject
(
hrgnTemp
);
...
...
@@ -172,7 +178,7 @@ INT X11DRV_ScrollWindowEx( HWND hwnd, INT dx, INT dy,
{
GetWindowRect
(
list
[
i
],
&
r
);
MapWindowPoints
(
0
,
hwnd
,
(
POINT
*
)
&
r
,
2
);
if
(
!
rect
||
IntersectRect
(
&
dummy
,
&
r
,
rect
))
if
(
!
rect
||
IntersectRect
(
&
dummy
,
&
r
,
&
rc
))
SetWindowPos
(
list
[
i
],
0
,
r
.
left
+
dx
,
r
.
top
+
dy
,
0
,
0
,
SWP_NOZORDER
|
SWP_NOSIZE
|
SWP_NOACTIVATE
|
SWP_NOREDRAW
|
SWP_DEFERERASE
);
...
...
@@ -187,7 +193,6 @@ INT X11DRV_ScrollWindowEx( HWND hwnd, INT dx, INT dy,
((
flags
&
SW_SCROLLCHILDREN
)
?
RDW_ALLCHILDREN
:
0
)
);
if
(
bOwnRgn
&&
hrgnUpdate
)
DeleteObject
(
hrgnUpdate
);
DeleteObject
(
hrgnClip
);
return
retVal
;
}
windows/scroll.c
View file @
4d837749
...
...
@@ -117,7 +117,7 @@ INT WINAPI ScrollWindowEx( HWND hwnd, INT dx, INT dy,
HWND
hwndCaret
=
fix_caret
(
hwnd
,
&
caretrc
,
flags
);
if
(
USER_Driver
.
pScrollWindowEx
)
result
=
USER_Driver
.
pScrollWindowEx
(
hwnd
,
dx
,
dy
,
&
rc
,
&
cliprc
,
result
=
USER_Driver
.
pScrollWindowEx
(
hwnd
,
dx
,
dy
,
rect
,
clipRect
,
hrgnUpdate
,
rcUpdate
,
flags
);
else
result
=
ERROR
;
/* FIXME: we should have a fallback implementation */
...
...
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