Commit d94c09a1 authored by Soeren Sandmann's avatar Soeren Sandmann Committed by Søren Sandmann Pedersen

swap G and B. Fixes (#114669)

Sun Jun  8 18:27:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
	Fixes (#114669)
parent 16400b3a
Sun Jun 8 18:27:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
Fixes (#114669)
Sun Jun 8 11:27:29 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with
......
Sun Jun 8 18:27:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
Fixes (#114669)
Sun Jun 8 11:27:29 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with
......
Sun Jun 8 18:27:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
Fixes (#114669)
Sun Jun 8 11:27:29 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with
......
Sun Jun 8 18:27:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
Fixes (#114669)
Sun Jun 8 11:27:29 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with
......
Sun Jun 8 18:27:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
Fixes (#114669)
Sun Jun 8 11:27:29 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with
......
......@@ -379,8 +379,8 @@ rgb8a (GdkImage *image,
* RGBA8888: RGBA, 32-bit native endian
*/
#define R8fromRGB565(d) ((((d) >> 8) & 0xf8) | (((d) >> 13) & 0x7))
#define B8fromRGB565(d) ((((d) >> 3) & 0xfc) | (((d) >> 9) & 0x3))
#define G8fromRGB565(d) ((((d) << 3) & 0xf8) | (((d) >> 2) & 0x7))
#define G8fromRGB565(d) ((((d) >> 3) & 0xfc) | (((d) >> 9) & 0x3))
#define B8fromRGB565(d) ((((d) << 3) & 0xf8) | (((d) >> 2) & 0x7))
#define ABGR8888fromRGB565(d) ( ((d) & 0xf800) >> 8 | ((d) & 0xe000) >> 13 \
| ((d) & 0x07e0) << 5 | ((d) & 0x0600) >> 1 \
......@@ -392,8 +392,8 @@ rgb8a (GdkImage *image,
| 0xff)
#define R8fromRGB555(d) (((d) & 0x7c00) >> 7 | ((d) & 0x7000) >> 12)
#define B8fromRGB555(d) (((d) & 0x03e0) >> 2 | ((d) & 0x0380) >> 7)
#define G8fromRGB555(d) (((d) & 0x001f) << 3 | ((d) & 0x001c) >> 2)
#define G8fromRGB555(d) (((d) & 0x03e0) >> 2 | ((d) & 0x0380) >> 7)
#define B8fromRGB555(d) (((d) & 0x001f) << 3 | ((d) & 0x001c) >> 2)
#define ABGR8888fromRGB555(d) ( ((d) & 0x7c00) >> 7 | ((d) & 0x7000) >> 12 \
| ((d) & 0x03e0) << 6 | ((d) & 0x0380) << 1 \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment