diff options
author | Darin Adler <darin@src.gnome.org> | 2000-05-05 02:50:24 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2000-05-05 02:50:24 +0000 |
commit | 0f038c9e320c4ef3306e17b136c39909cd7baa57 (patch) | |
tree | e10f49d7c4d6b09a872989c28f0da091d207a104 /gdk-pixbuf/test-gdk-pixbuf.c | |
parent | 24fa8a64bcd200b1c2f15ffb9d8d5c34e279601f (diff) | |
download | gtk+-0f038c9e320c4ef3306e17b136c39909cd7baa57.tar.gz |
Now that Owen explained the algorithm, I think I implemented it right for
* gdk-pixbuf/pixops/pixops.c: (pixops_composite_nearest),
(composite_pixel), (composite_line):
* gdk-pixbuf/test-gdk-pixbuf.c: (simple_composite_test_one_type):
Now that Owen explained the algorithm, I think I implemented it
right for the cases where the destination pixbuf is not opaque.
The test does seem to confirm it.
Diffstat (limited to 'gdk-pixbuf/test-gdk-pixbuf.c')
-rw-r--r-- | gdk-pixbuf/test-gdk-pixbuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk-pixbuf/test-gdk-pixbuf.c b/gdk-pixbuf/test-gdk-pixbuf.c index b75f2e65e1..c4e22d1c4b 100644 --- a/gdk-pixbuf/test-gdk-pixbuf.c +++ b/gdk-pixbuf/test-gdk-pixbuf.c @@ -201,7 +201,8 @@ simple_composite_test_one_type (GdkInterpType type) success &= simple_composite_test_one (type, 0x00000000, TRUE, 0xFF0000FF, TRUE, 0xFF0000FF); success &= simple_composite_test_one (type, 0x00000000, TRUE, 0x00FF00FF, TRUE, 0x00FF00FF); success &= simple_composite_test_one (type, 0x00000000, TRUE, 0x0000FFFF, TRUE, 0x0000FFFF); - success &= simple_composite_test_one (type, 0x00FF0080, TRUE, 0xFFFFFF00, TRUE, 0x7FFF7F80); + success &= simple_composite_test_one (type, 0x00FF0080, TRUE, 0xFFFFFF00, TRUE, 0x00FF0080); + success &= simple_composite_test_one (type, 0xFF000080, TRUE, 0x00FF0040, TRUE, 0xCC32009F); success &= simple_composite_test_one (type, 0xFFFFFFFF, TRUE, 0xFFFFFFFF, TRUE, 0xFFFFFFFF); return success; |