sys/ximage/ximageutil.c: Fix rgb masks when recording in < 24bpp.

Original commit message from CVS:
2006-08-04  Zaheer Abbas Merali  <zaheerabbas at merali dot org>

* sys/ximage/ximageutil.c: (ximageutil_xcontext_get):
Fix rgb masks when recording in < 24bpp.
This commit is contained in:
Zaheer Abbas Merali 2006-08-04 10:21:26 +00:00
parent 76e8dd7b26
commit 8d6b0e2963
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-08-04 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* sys/ximage/ximageutil.c: (ximageutil_xcontext_get):
Fix rgb masks when recording in < 24bpp.
2006-08-04 Andy Wingo <wingo@pobox.com>
* ext/ladspa/gstsignalprocessor.c (gst_signal_processor_setcaps)

View file

@ -210,6 +210,10 @@ ximageutil_xcontext_get (GstElement * parent, const gchar * display_name)
xcontext->g_mask_output >>= 8;
xcontext->b_mask_output >>= 8;
}
} else {
xcontext->r_mask_output = xcontext->visual->red_mask;
xcontext->g_mask_output = xcontext->visual->green_mask;
xcontext->b_mask_output = xcontext->visual->blue_mask;
}
return xcontext;