xdestroyimage.diff 638 B

12345678910111213141516171819
  1. --- mag.c 2010-09-13 13:56:43.000000000 -0400
  2. +++ mag.c.fixed 2021-12-07 23:23:49.729231259 -0500
  3. @@ -174,7 +174,6 @@
  4. ximage=XGetImage(display,root,x-sx,y-sy,width/zoom,height/zoom,AllPlanes,ZPixmap);
  5. // fprintf(stderr,"XGetImage returns:%d\n",(int)ximage);
  6. // XPutImage(display,main_win,the_GC,ximage,0,0,0,0,width,height);
  7. - XDestroyImage(ximage);
  8. for(sx=0;sx<width/zoom;sx++) {
  9. for(sy=0;sy<height/zoom;sy++) {
  10. pix=XGetPixel(ximage,sx,sy);
  11. @@ -186,6 +185,7 @@
  12. }
  13. }
  14. }
  15. + XDestroyImage(ximage);
  16. XFlush(display);
  17. } else {
  18. usleep(30000);