mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
examples: Fix compiler warnings
This commit is contained in:
parent
0294fc27ed
commit
ce7015bdb0
@ -196,9 +196,6 @@ output_cb (CoglOutput *output, void *user_data)
|
|||||||
cogl_output_get_mm_height (output));
|
cogl_output_get_mm_height (output));
|
||||||
switch (cogl_output_get_subpixel_order (output))
|
switch (cogl_output_get_subpixel_order (output))
|
||||||
{
|
{
|
||||||
case COGL_SUBPIXEL_ORDER_UNKNOWN:
|
|
||||||
order = "unknown";
|
|
||||||
break;
|
|
||||||
case COGL_SUBPIXEL_ORDER_NONE:
|
case COGL_SUBPIXEL_ORDER_NONE:
|
||||||
order = "non-standard";
|
order = "non-standard";
|
||||||
break;
|
break;
|
||||||
@ -214,6 +211,9 @@ output_cb (CoglOutput *output, void *user_data)
|
|||||||
case COGL_SUBPIXEL_ORDER_VERTICAL_BGR:
|
case COGL_SUBPIXEL_ORDER_VERTICAL_BGR:
|
||||||
order = "vertical,bgr";
|
order = "vertical,bgr";
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
order = "unknown";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
printf (" » sub pixel order = %s\n", order);
|
printf (" » sub pixel order = %s\n", order);
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ main (int argc, char **argv)
|
|||||||
Window tfp_xwin = None;
|
Window tfp_xwin = None;
|
||||||
Pixmap pixmap;
|
Pixmap pixmap;
|
||||||
CoglTexturePixmapX11 *tfp;
|
CoglTexturePixmapX11 *tfp;
|
||||||
CoglTexture *right_texture;
|
CoglTexture *right_texture = NULL;
|
||||||
GC gc = None;
|
GC gc = None;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user