X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fripples.c;h=be3268387b30ba7a93645143cf845cd80de42a9b;hb=13dbc569cdc6e29019722c0ef9b932a925efbcad;hp=eded66ee4d73c3f224dd9e1f9bbeb419d1c9f633;hpb=06e9a7886a77cad92f9ddbc169d6d199a4d8b76d;p=xscreensaver diff --git a/hacks/ripples.c b/hacks/ripples.c index eded66ee..be326838 100644 --- a/hacks/ripples.c +++ b/hacks/ripples.c @@ -436,12 +436,20 @@ setup_X(Display * disp, Window win) bigheight = xwa.height; visual = xwa.visual; -#if 1 /* I'm not entirely sure if I need this */ + + /* This causes buffer_map to be 1 pixel taller and wider than orig_map, + which can cause the two XImages to have different bytes-per-line, + which causes stair-stepping. So this better not be necessary... + -jwz, 23-Nov-01 + */ +#if 0 /* I'm not entirely sure if I need this */ if (bigwidth % 2) bigwidth++; if (bigheight % 2) bigheight++; #endif + + width = bigwidth / 2; height = bigheight / 2;