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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
23 deletions
+17
-23
scroll.c
windows/scroll.c
+0
-0
wnd.c
windows/x11drv/wnd.c
+17
-23
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)
...
@@ -536,42 +536,36 @@ void X11DRV_WND_PreSizeMove(WND *wndPtr)
void
X11DRV_WND_PostSizeMove
(
WND
*
wndPtr
)
void
X11DRV_WND_PostSizeMove
(
WND
*
wndPtr
)
{
{
if
(
!
(
wndPtr
->
dwStyle
&
WS_CHILD
)
&&
if
(
!
(
wndPtr
->
dwStyle
&
WS_CHILD
)
&&
(
X11DRV_GetXRootWindow
(
wndPtr
)
==
DefaultRootWindow
(
display
)))
(
X11DRV_GetXRootWindow
()
==
DefaultRootWindow
(
display
)))
TSXUngrabServer
(
display
);
TSXUngrabServer
(
display
);
}
}
/*****************************************************************
/*****************************************************************
* X11DRV_WND_ScrollWindow
* X11DRV_WND_ScrollWindow
*/
*/
void
X11DRV_WND_ScrollWindow
(
void
X11DRV_WND_ScrollWindow
(
WND
*
wndPtr
,
DC
*
dcPtr
,
INT32
dx
,
INT32
dy
,
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
;
X11DRV_PDEVICE
*
physDev
=
(
X11DRV_PDEVICE
*
)
dcPtr
->
physDev
;
POINT32
dst
,
src
;
POINT32
dst
,
src
;
if
(
dx
>
0
)
dst
.
x
=
(
src
.
x
=
dcPtr
->
w
.
DCOrgX
+
clipRect
->
left
)
+
dx
;
dst
.
x
=
(
src
.
x
=
dcPtr
->
w
.
DCOrgX
+
rect
->
left
)
+
dx
;
else
src
.
x
=
(
dst
.
x
=
dcPtr
->
w
.
DCOrgX
+
clipRect
->
left
)
-
dx
;
dst
.
y
=
(
src
.
y
=
dcPtr
->
w
.
DCOrgY
+
rect
->
top
)
+
dy
;
if
(
dy
>
0
)
dst
.
y
=
(
src
.
y
=
dcPtr
->
w
.
DCOrgY
+
clipRect
->
top
)
+
dy
;
else
src
.
y
=
(
dst
.
y
=
dcPtr
->
w
.
DCOrgY
+
clipRect
->
top
)
-
dy
;
if
((
clipRect
->
right
-
clipRect
->
left
>
abs
(
dx
))
&&
if
(
bUpdate
)
/* handles non-Wine windows hanging over the scrolled area */
(
clipRect
->
bottom
-
clipRect
->
top
>
abs
(
dy
)))
TSXSetGraphicsExposures
(
display
,
physDev
->
gc
,
True
);
{
TSXSetFunction
(
display
,
physDev
->
gc
,
GXcopy
);
if
(
bUpdate
)
/* handles non-Wine windows hanging over the scrolled area */
TSXCopyArea
(
display
,
physDev
->
drawable
,
physDev
->
drawable
,
TSXSetGraphicsExposures
(
display
,
physDev
->
gc
,
True
);
physDev
->
gc
,
src
.
x
,
src
.
y
,
TSXSetFunction
(
display
,
physDev
->
gc
,
GXcopy
);
rect
->
right
-
rect
->
left
,
TSXCopyArea
(
display
,
physDev
->
drawable
,
physDev
->
drawable
,
rect
->
bottom
-
rect
->
top
,
physDev
->
gc
,
src
.
x
,
src
.
y
,
dst
.
x
,
dst
.
y
);
clipRect
->
right
-
clipRect
->
left
-
abs
(
dx
),
if
(
bUpdate
)
clipRect
->
bottom
-
clipRect
->
top
-
abs
(
dy
),
TSXSetGraphicsExposures
(
display
,
physDev
->
gc
,
False
);
dst
.
x
,
dst
.
y
);
if
(
bUpdate
)
if
(
bUpdate
)
/* Make sure exposure events have been processed */
TSXSetGraphicsExposures
(
display
,
physDev
->
gc
,
False
);
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