-/* GDK - The GTK+ Drawing Kit
+/* GDK - The GIMP Drawing Kit
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* This library is free software; you can redistribute it and/or
#define ENABLE_GRAYSCALE
-#include "gdkprivate.h"
#include "gdkinternals.h" /* _gdk_windowing_get_bits_for_depth() */
#include "gdkrgb.h"
{
static const gint byte_order[1] = { 1 };
- if (_gdk_debug_flags & GDK_DEBUG_GDKRGB)
- gdk_rgb_verbose = TRUE;
-
/* check endian sanity */
#if G_BYTE_ORDER == G_BIG_ENDIAN
if (((char *)byte_order)[0] == 1)
{
bp2 = bptr;
obptr = obuf;
- if (((unsigned long)obuf | (unsigned long) bp2) & 3)
+ if (((guintptr)obuf | (guintptr) bp2) & 3)
{
for (x = 0; x < width; x++)
{
{
bp2 = bptr;
obptr = obuf;
- if (((unsigned long)obuf | (unsigned long) bp2) & 3)
+ if (((guintptr)obuf | (guintptr) bp2) & 3)
{
for (x = 0; x < width; x++)
{
{
bp2 = bptr;
obptr = obuf;
- if (((unsigned long)obuf | (unsigned long) bp2) & 3)
+ if (((guintptr)obuf | (guintptr) bp2) & 3)
{
for (x = 0; x < width; x++)
{
const guint32 *dmp = DM_565 + ((y & (DM_HEIGHT - 1)) << DM_WIDTH_SHIFT);
bp2 = bptr;
obptr = obuf;
- if (((unsigned long)obuf | (unsigned long) bp2) & 3)
+ if (((guintptr)obuf | (guintptr) bp2) & 3)
{
for (x = x_align; x < width; x++)
{
{
bp2 = bptr;
obptr = obuf;
- if (((unsigned long)obuf | (unsigned long) bp2) & 3)
+ if (((guintptr)obuf | (guintptr) bp2) & 3)
{
for (x = 0; x < width; x++)
{
conv = gdk_rgb_convert_4_pack;
if (!conv)
- {
- g_warning ("Visual type=%d depth=%d, image bpp=%d, %s first\n"
- "is not supported by GdkRGB. Please submit a bug report\n"
- "with the above values to bugzilla.gnome.org",
- vtype, depth, bpp,
- byte_order == GDK_LSB_FIRST ? "lsb" : "msb");
- exit (1);
- }
-
+ g_error ("Visual type=%d depth=%d, image bpp=%d, %s first\n"
+ "is not supported by GdkRGB. Please submit a bug report\n"
+ "with the above values to bugzilla.gnome.org",
+ vtype, depth, bpp,
+ byte_order == GDK_LSB_FIRST ? "lsb" : "msb");
+
if (conv_d == NULL)
conv_d = conv;