patches/gnome-mag-05-translate-region.diff
author rohinis
Tue, 29 Nov 2011 17:32:55 +0000
branchs11express-2010-11
changeset 22234 c23e64da3e06
parent 20260 944d78effcae
permissions -rw-r--r--
2011-11-29 Rohini S <[email protected]> * patches/Python26-22-audio.diff: Fixes CVE-2010-1634 * specs/SUNWPython26.spec: Fixes CR 7085446
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20260
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
     1
--- gnome-mag-0.16.1/magnifier/x11/gmag-compositor.c	2010-04-01 00:53:08.000000000 +0800
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
     2
+++ gnome-mag-0.16.1-mod/magnifier/x11/gmag-compositor.c	2010-10-09 16:04:56.950947449 +0800
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
     3
@@ -156,15 +156,15 @@
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
     4
 		XFixesIntersectRegion (dpy, final_clip, region,
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
     5
 				       pgmag_win->clip);
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
     6
 		XFixesSetPictureClipRegion (dpy, pgmag_win->pic,
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
     7
-					    -(pgmag_win->attr.x),
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
     8
-					    -(pgmag_win->attr.y), final_clip);
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
     9
+					    0,
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    10
+					    0, final_clip);
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    11
 
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    12
 		rectlist = XFixesFetchRegion (dpy, final_clip, &howmany);
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    13
 	} else {
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    14
 		XFixesSetPictureClipRegion (dpy,
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    15
 					    pgmag_win->pic,
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    16
-					    -(pgmag_win->attr.x),
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    17
-					    -(pgmag_win->attr.y),
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    18
+					    0,
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    19
+					    0,
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    20
 					    pgmag_win->clip);
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    21
 		rectlist = XFixesFetchRegion (dpy, pgmag_win->clip, &howmany);
944d78effcae 2010-10-15 Li Yuan <[email protected]>
davelam
parents:
diff changeset
    22
 	}