diff options
Diffstat (limited to 'test/source')
-rw-r--r-- | test/source/huetest.xcf.gz | bin | 0 -> 635 bytes | |||
-rw-r--r-- | test/source/indextest.xcf.gz | bin | 941 -> 943 bytes | |||
-rw-r--r-- | test/source/mkmodebase.c | 17 | ||||
-rw-r--r-- | test/source/modetest.xcf.gz | bin | 836 -> 792 bytes | |||
-rw-r--r-- | test/source/truncated.xcf | bin | 0 -> 455 bytes |
5 files changed, 7 insertions, 10 deletions
diff --git a/test/source/huetest.xcf.gz b/test/source/huetest.xcf.gz Binary files differnew file mode 100644 index 0000000..b1f24a3 --- /dev/null +++ b/test/source/huetest.xcf.gz diff --git a/test/source/indextest.xcf.gz b/test/source/indextest.xcf.gz Binary files differindex b782acf..f8675eb 100644 --- a/test/source/indextest.xcf.gz +++ b/test/source/indextest.xcf.gz 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 Binary files differindex c2d7f8a..d4b37c1 100644 --- a/test/source/modetest.xcf.gz +++ b/test/source/modetest.xcf.gz diff --git a/test/source/truncated.xcf b/test/source/truncated.xcf Binary files differnew file mode 100644 index 0000000..0229b3f --- /dev/null +++ b/test/source/truncated.xcf |