summaryrefslogtreecommitdiffstats
path: root/sys/ximage
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-12-24 11:36:31 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-12-24 11:36:31 +0000
commit3d1e70c2d1fa17c98aa5e5894be853813294b5e4 (patch)
treec80c2221ceaf4c4b834f29850dc072123e541ed8 /sys/ximage
parent7735292ec2300a00b1f7778a4c91e60843b4cec9 (diff)
sys/ximage/gstximagesrc.c: Fix presumably copy'n'pasto for 16bpp depth.
Original commit message from CVS: * sys/ximage/gstximagesrc.c: (composite_pixel): Fix presumably copy'n'pasto for 16bpp depth.
Diffstat (limited to 'sys/ximage')
-rw-r--r--sys/ximage/gstximagesrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ximage/gstximagesrc.c b/sys/ximage/gstximagesrc.c
index 720c1e34..95dfae89 100644
--- a/sys/ximage/gstximagesrc.c
+++ b/sys/ximage/gstximagesrc.c
@@ -265,7 +265,7 @@ composite_pixel (GstXContext * xcontext, guchar * dest, guchar * src)
color = *dest;
break;
case 16:
- color = GUINT16_FROM_LE (*(guint32 *) (dest));
+ color = GUINT16_FROM_LE (*(guint16 *) (dest));
break;
case 32:
color = GUINT32_FROM_LE (*(guint32 *) (dest));