Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Drew DeVault
xserver
Commits
86a20652
Commit
86a20652
authored
Feb 11, 2010
by
Emma Anholt
Committed by
Zhigang Gong
Sep 26, 2011
Browse files
glamor: Fix off-by-one in CopyPixels CopyArea path.
Fixes window dragging in uncomposited metacity.
parent
be82a062
Changes
1
Hide whitespace changes
Inline
Side-by-side
glamor/glamor_copyarea.c
View file @
86a20652
...
...
@@ -76,7 +76,7 @@ glamor_copy_n_to_n_copypixels(DrawablePtr src,
glamor_get_drawable_deltas
(
dst
,
dst_pixmap
,
&
x_off
,
&
y_off
);
for
(
i
=
0
;
i
<
nbox
;
i
++
)
{
int
flip_y1
=
dst_pixmap
->
drawable
.
height
-
1
-
box
[
i
].
y2
+
y_off
;
int
flip_y1
=
dst_pixmap
->
drawable
.
height
-
box
[
i
].
y2
+
y_off
;
glRasterPos2i
(
box
[
i
].
x1
+
x_off
,
flip_y1
);
glCopyPixels
(
box
[
i
].
x1
+
dx
+
x_off
,
...
...
Write
Preview
Supports
Markdown
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