chiark / gitweb /
fix stupid width/height bug
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 19 Jun 2009 18:39:36 +0000 (19:39 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 19 Jun 2009 18:39:36 +0000 (19:39 +0100)
pctb/pages.c

index 58cb306b436f9c3d76937396e763e81fd50aa07f..50a652c5946a02ffd1a82fc60780e19620217dbf 100644 (file)
@@ -271,8 +271,8 @@ static void snapshot(Snapshot **output) {
 
   int x,y,i;
   unsigned char *op= (*output)->data;
-  for (y=0; y<wwidth; y++) {
-    for (x=0; x<wheight; x++) {
+  for (y=0; y<wheight; y++) {
+    for (x=0; x<wwidth; x++) {
       long xrgb= XGetPixel(im_use,x,y);
       for (i=0; i<3; i++) {
        unsigned long sample=