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
1da6dbab
Commit
1da6dbab
authored
Feb 14, 1999
by
Jerome Vouillon
Committed by
Alexandre Julliard
Feb 14, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make a correct use of clipping rectangles.
parent
ab6415ce
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
15 deletions
+9
-15
scroll.c
windows/scroll.c
+0
-0
wnd.c
windows/x11drv/wnd.c
+9
-15
No files found.
windows/scroll.c
View file @
1da6dbab
This diff is collapsed.
Click to expand it.
windows/x11drv/wnd.c
View file @
1da6dbab
...
...
@@ -536,42 +536,36 @@ void X11DRV_WND_PreSizeMove(WND *wndPtr)
void
X11DRV_WND_PostSizeMove
(
WND
*
wndPtr
)
{
if
(
!
(
wndPtr
->
dwStyle
&
WS_CHILD
)
&&
(
X11DRV_GetXRootWindow
(
wndPtr
)
==
DefaultRootWindow
(
display
)))
(
X11DRV_GetXRootWindow
()
==
DefaultRootWindow
(
display
)))
TSXUngrabServer
(
display
);
}
/*****************************************************************
* X11DRV_WND_ScrollWindow
*/
void
X11DRV_WND_ScrollWindow
(
WND
*
wndPtr
,
DC
*
dcPtr
,
INT32
dx
,
INT32
dy
,
const
RECT32
*
clipR
ect
,
BOOL32
bUpdate
)
const
RECT32
*
r
ect
,
BOOL32
bUpdate
)
{
X11DRV_PDEVICE
*
physDev
=
(
X11DRV_PDEVICE
*
)
dcPtr
->
physDev
;
POINT32
dst
,
src
;
if
(
dx
>
0
)
dst
.
x
=
(
src
.
x
=
dcPtr
->
w
.
DCOrgX
+
clipRect
->
left
)
+
dx
;
else
src
.
x
=
(
dst
.
x
=
dcPtr
->
w
.
DCOrgX
+
clipRect
->
left
)
-
dx
;
if
(
dy
>
0
)
dst
.
y
=
(
src
.
y
=
dcPtr
->
w
.
DCOrgY
+
clipRect
->
top
)
+
dy
;
else
src
.
y
=
(
dst
.
y
=
dcPtr
->
w
.
DCOrgY
+
clipRect
->
top
)
-
dy
;
dst
.
x
=
(
src
.
x
=
dcPtr
->
w
.
DCOrgX
+
rect
->
left
)
+
dx
;
dst
.
y
=
(
src
.
y
=
dcPtr
->
w
.
DCOrgY
+
rect
->
top
)
+
dy
;
if
((
clipRect
->
right
-
clipRect
->
left
>
abs
(
dx
))
&&
(
clipRect
->
bottom
-
clipRect
->
top
>
abs
(
dy
)))
{
if
(
bUpdate
)
/* handles non-Wine windows hanging over the scrolled area */
TSXSetGraphicsExposures
(
display
,
physDev
->
gc
,
True
);
TSXSetFunction
(
display
,
physDev
->
gc
,
GXcopy
);
TSXCopyArea
(
display
,
physDev
->
drawable
,
physDev
->
drawable
,
physDev
->
gc
,
src
.
x
,
src
.
y
,
clipRect
->
right
-
clipRect
->
left
-
abs
(
dx
)
,
clipRect
->
bottom
-
clipRect
->
top
-
abs
(
dy
)
,
rect
->
right
-
rect
->
left
,
rect
->
bottom
-
rect
->
top
,
dst
.
x
,
dst
.
y
);
if
(
bUpdate
)
TSXSetGraphicsExposures
(
display
,
physDev
->
gc
,
False
);
}
if
(
bUpdate
)
/* Make sure exposure events have been processed */
EVENT_Synchronize
();
}
/***********************************************************************
...
...
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