On Thu, Jul 12, 2012 at 7:46 PM, Alon Levy <alevy at redhat.com> wrote: > + if (!BITMAP_FMT_IS_RGB[qxl->bitmap.format] && !qxl->bitmap.palette) { Could it be possible to make this a common inline function, and doing a check of format range there too? -- Marc-André Lureau