mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00: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));
|
||||
switch (cogl_output_get_subpixel_order (output))
|
||||
{
|
||||
case COGL_SUBPIXEL_ORDER_UNKNOWN:
|
||||
order = "unknown";
|
||||
break;
|
||||
case COGL_SUBPIXEL_ORDER_NONE:
|
||||
order = "non-standard";
|
||||
break;
|
||||
@ -214,6 +211,9 @@ output_cb (CoglOutput *output, void *user_data)
|
||||
case COGL_SUBPIXEL_ORDER_VERTICAL_BGR:
|
||||
order = "vertical,bgr";
|
||||
break;
|
||||
default:
|
||||
order = "unknown";
|
||||
break;
|
||||
}
|
||||
printf (" » sub pixel order = %s\n", order);
|
||||
|
||||
|
@ -148,7 +148,7 @@ main (int argc, char **argv)
|
||||
Window tfp_xwin = None;
|
||||
Pixmap pixmap;
|
||||
CoglTexturePixmapX11 *tfp;
|
||||
CoglTexture *right_texture;
|
||||
CoglTexture *right_texture = NULL;
|
||||
GC gc = None;
|
||||
int i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user