boilerplate: Use correct flag type in DFBWindowDescription

The window description flag macros are prefixed with DWDESC_.

The issue was not noticed because DWDESC_CAPS and DSDESC_CAPS have the
same value.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=37049
This commit is contained in:
Haithem Rahmani 2011-06-20 11:16:14 +02:00 committed by Andrea Canciani
parent 190d8d7290
commit 8fb9a6727e

View file

@ -116,7 +116,7 @@ _cairo_boilerplate_directfb_window_create_surface (DFBInfo *info,
desc.width = width;
desc.height = height;
if (content == CAIRO_CONTENT_COLOR_ALPHA) {
desc.flags |= DWDESC_CAPS | DSDESC_PIXELFORMAT;
desc.flags |= DWDESC_CAPS | DWDESC_PIXELFORMAT;
desc.caps |= DWCAPS_DOUBLEBUFFER | DWCAPS_ALPHACHANNEL;
desc.pixelformat = DSPF_ARGB;
}