From 00a8b13b5bf8cf2c367a0db3ae09086e45230968 Mon Sep 17 00:00:00 2001 From: Henning Makholm Date: Sat, 11 Feb 2006 18:00:00 -0500 Subject: Import of release 0.9 --- (limited to 'test/source') diff --git a/test/source/huetest.xcf.gz b/test/source/huetest.xcf.gz new file mode 100644 index 0000000..b1f24a3 --- /dev/null +++ b/test/source/huetest.xcf.gz Binary files differ diff --git a/test/source/indextest.xcf.gz b/test/source/indextest.xcf.gz index b782acf..f8675eb 100644 --- a/test/source/indextest.xcf.gz +++ b/test/source/indextest.xcf.gz Binary files differ diff --git a/test/source/mkmodebase.c b/test/source/mkmodebase.c index 3e5c656..376be12 100644 --- a/test/source/mkmodebase.c +++ b/test/source/mkmodebase.c @@ -7,17 +7,14 @@ void makepixel(int x,int y,int *r,int *g,int *b,int *a) { - if( y < 3 || y >= 61 ) { + if( x < 3 || x >= 61 ) { *a = 0 ; return ; } - if( x < 3 || x >= 61 || - y < 6 || y >= 58 ) { - *r=*g=*b=*a=255 ; - return ; - } - if( x < 6 || x >= 58 ) { - *a=0 ; + if( y < 3 || y >= 61 || + x < 6 || x >= 58 ) { + *a = 255 ; + *r=*g=*b= 255*(x>=32) ; return ; } x -= 6 ; @@ -39,8 +36,8 @@ makepixel(int x,int y,int *r,int *g,int *b,int *a) { x -= 17 ; if( x <= 17 ) { *r = (17-x)*15 ; - *g = 255 ; - *b = x*15 ; + *g = (17-x)*15 ; + *b = (x-1)*15 ; return ; } *r=255 ; diff --git a/test/source/modetest.xcf.gz b/test/source/modetest.xcf.gz index c2d7f8a..d4b37c1 100644 --- a/test/source/modetest.xcf.gz +++ b/test/source/modetest.xcf.gz Binary files differ diff --git a/test/source/truncated.xcf b/test/source/truncated.xcf new file mode 100644 index 0000000..0229b3f --- /dev/null +++ b/test/source/truncated.xcf Binary files differ -- cgit v0.9.1