* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*/
-#include <config.h>
-#include <gnome.h>
+#include "config.h"
+
+#include <stdlib.h>
#include "gdk-pixbuf.h"
-#include "gdk-pixbuf-loader.h"
-#include "gnome-canvas-pixbuf.h"
+#include <glib-object.h>
\f
+ 16 * gdk_pixbuf_get_n_channels (destination_pixbuf),
destination_alpha);
- gdk_pixbuf_unref (source_pixbuf);
- gdk_pixbuf_unref (destination_pixbuf);
+ g_object_unref (source_pixbuf);
+ g_object_unref (destination_pixbuf);
if (result_pixel != expected_result) {
char *interpolation_type, *source_string, *destination_string, *result_string, *expected_string;
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;
main (int argc, char **argv)
{
int result;
-
+
result = EXIT_SUCCESS;
+ g_type_init ();
+
/* Run some tests. */
if (!simple_composite_test ()) {
result = EXIT_FAILURE;