diff -Nru pngphoon-1.0/debian/changelog pngphoon-1.1/debian/changelog --- pngphoon-1.0/debian/changelog 2010-02-02 01:00:29.000000000 +0000 +++ pngphoon-1.1/debian/changelog 2010-02-02 01:00:29.000000000 +0000 @@ -1,3 +1,10 @@ +pngphoon (1.1-1) unstable; urgency=low + + * New upstream version + * Changed Maintainer e-mail address + + -- Meike Reichle Sun, 17 Jan 2010 20:14:59 +0100 + pngphoon (1.0-1) unstable; urgency=low * New upstream version diff -Nru pngphoon-1.0/debian/control pngphoon-1.1/debian/control --- pngphoon-1.0/debian/control 2010-02-02 01:00:29.000000000 +0000 +++ pngphoon-1.1/debian/control 2010-02-02 01:00:29.000000000 +0000 @@ -1,9 +1,9 @@ Source: pngphoon Section: x11 Priority: optional -Maintainer: Meike Reichle +Maintainer: Meike Reichle Build-Depends: debhelper (>= 5), libpng12-dev, docbook-to-man -Standards-Version: 3.7.3 +Standards-Version: 3.8.3 Homepage: http://www.svolli.org/software/pngphoon/ Package: pngphoon diff -Nru pngphoon-1.0/debian/copyright pngphoon-1.1/debian/copyright --- pngphoon-1.0/debian/copyright 2010-02-02 01:00:29.000000000 +0000 +++ pngphoon-1.1/debian/copyright 2010-02-02 01:00:29.000000000 +0000 @@ -1,4 +1,4 @@ -This package was debianized by Meike Reichle on +This package was debianized by Meike Reichle on Fri, 13 Apr 2007 20:13:16 +0200. It was downloaded from http://svolli.de/software/pngphoon/ diff -Nru pngphoon-1.0/image.c pngphoon-1.1/image.c --- pngphoon-1.0/image.c 2006-01-07 17:48:46.000000000 +0000 +++ pngphoon-1.1/image.c 2009-02-16 13:23:21.000000000 +0000 @@ -12,7 +12,7 @@ image->width = width; image->height = height; image->xbytes = (width + 7) / 8; - image->bitmap = (png_bytep)calloc( image->xbytes, height ); + image->bitmap = (png_bytep)calloc( image->xbytes + 1, height ); image->rowps = (png_bytep*)malloc( sizeof( png_bytep ) * height ); for( i = 0; i < height; i ++ ) diff -Nru pngphoon-1.0/main.c pngphoon-1.1/main.c --- pngphoon-1.0/main.c 2008-01-15 20:21:20.000000000 +0000 +++ pngphoon-1.1/main.c 2009-02-16 07:58:52.000000000 +0000 @@ -87,6 +87,7 @@ if( !width || !height || !filename ) { printf( "you need to specify at least width, height and filename\n" ); + exit(1); } moon = mooncreate(); diff -Nru pngphoon-1.0/Makefile pngphoon-1.1/Makefile --- pngphoon-1.0/Makefile 2006-01-08 14:25:15.000000000 +0000 +++ pngphoon-1.1/Makefile 2009-02-16 13:29:38.000000000 +0000 @@ -11,10 +11,6 @@ %.o: %.c $(CC) $(CFLAGS) -c $< -test: all - ./pngphoon 1024 768 test.png > log - xv test.png - clean: rm -f *.o pngphoon diff -Nru pngphoon-1.0/moon.c pngphoon-1.1/moon.c --- pngphoon-1.0/moon.c 2006-01-07 17:48:39.000000000 +0000 +++ pngphoon-1.1/moon.c 2009-02-16 13:23:35.000000000 +0000 @@ -71,11 +71,12 @@ double cap, ratio; int shadeindex; unsigned char shade; - int imageoffset; + int xoffset, yoffset; t = dtwstime(); - imageoffset = (cy - moondata->height/2) * image->width + (cx - moondata->width/2); + xoffset = (cx - moondata->width/2); + yoffset = (cy - moondata->height/2); jd = jtime( t ); @@ -119,9 +120,9 @@ bytetxright = (txright-1) / 8; bittxright = (txright-1) % 8; - moonoff = y * ( ( moondata->width + 7 ) / 8 ); - imageoff = (y * ( image->width ) + imageoffset + 7) / 8; - + moonoff = y * ( moondata->width ) / 8; + imageoff = (y + yoffset) * image->xbytes + xoffset / 8; + if ( blackflag ) shade = 0xff; else diff -Nru pngphoon-1.0/README pngphoon-1.1/README --- pngphoon-1.0/README 2008-01-15 19:45:27.000000000 +0000 +++ pngphoon-1.1/README 2009-02-16 09:04:44.000000000 +0000 @@ -69,3 +69,19 @@ - click "OK" on everything you opened +Setting up pngphoon for GNOME: +For GNOME it's not so simple. I hacked up a small shell-script that's run via +cron on my main system, where I'm constantanly loggin in. On my notebook it's +run via the autostart mechanism. + +---8<---8<--- +#!/bin/sh + +width=1920 +height=1200 +file="$HOME/.gnome2/share/images/moon.png" + +pngphoon -w $width -h $height -f "$file" +gconftool-2 --type string --set /desktop/gnome/background/picture_filename "$file" +---8<---8<--- + diff -Nru pngphoon-1.0/stars.c pngphoon-1.1/stars.c --- pngphoon-1.0/stars.c 2006-01-08 14:35:44.000000000 +0000 +++ pngphoon-1.1/stars.c 2009-02-16 13:24:03.000000000 +0000 @@ -43,7 +43,7 @@ for( y = 0; y < star->height; y++ ) { - p = image->bitmap + (xpos + (ypos + y) * image->width)/8; + p = image->bitmap + xpos + ( (ypos + y) * image->xbytes ); shift.u16 = star->data[y] << 8; shift.u16 >>= (xpos%8); *p |= shift.u8[1];