Bug#813674: Acknowledgement (zoom-player: fails with "X Error of failed request: BadMatch (invalid parameter attributes)")
Alexandre Detiste
alexandre.detiste at gmail.com
Thu Feb 4 10:47:51 UTC 2016
PS:
This happens exactly in the second call to display_get_pix_colour(int
x, int y).
Having this function return a dummy value early make it working
past the first screen.
Well, this is not the right fix obviously.
diff --git a/src/xdisplay.c b/src/xdisplay.c
index 0eff1c2..f55c79e 100644
--- a/src/xdisplay.c
+++ b/src/xdisplay.c
@@ -2971,7 +2971,8 @@ int display_get_pix_colour(int x, int y)
XColor out;
int res;
-
+ return 100;
+ printf("HERE\n");
teeny = XGetImage(x_display, x_pixmap, x, y, 1, 1, AllPlanes, XYPixmap);
px = XGetPixel(teeny, 0, 0);
XDestroyImage(teeny);
@@ -2979,6 +2980,7 @@ int display_get_pix_colour(int x, int y)
out.pixel = px;
XQueryColor(x_display, DefaultColormap(x_display, x_screen),
&out);
+ printf("HERE2\n");
More information about the Pkg-games-devel
mailing list