Commit 30ebf46a authored by Jasper St. Pierre's avatar Jasper St. Pierre

cursor: Reindent

parent da277352
...@@ -303,28 +303,28 @@ meta_cursor_image_load_from_buffer (MetaCursorTracker *tracker, ...@@ -303,28 +303,28 @@ meta_cursor_image_load_from_buffer (MetaCursorTracker *tracker,
switch (wl_shm_buffer_get_format (shm_buffer)) switch (wl_shm_buffer_get_format (shm_buffer))
{ {
#if G_BYTE_ORDER == G_BIG_ENDIAN #if G_BYTE_ORDER == G_BIG_ENDIAN
case WL_SHM_FORMAT_ARGB8888: case WL_SHM_FORMAT_ARGB8888:
cogl_format = COGL_PIXEL_FORMAT_ARGB_8888_PRE; cogl_format = COGL_PIXEL_FORMAT_ARGB_8888_PRE;
gbm_format = GBM_FORMAT_ARGB8888; gbm_format = GBM_FORMAT_ARGB8888;
break; break;
case WL_SHM_FORMAT_XRGB8888: case WL_SHM_FORMAT_XRGB8888:
cogl_format = COGL_PIXEL_FORMAT_ARGB_8888; cogl_format = COGL_PIXEL_FORMAT_ARGB_8888;
gbm_format = GBM_FORMAT_XRGB8888; gbm_format = GBM_FORMAT_XRGB8888;
break; break;
#else #else
case WL_SHM_FORMAT_ARGB8888: case WL_SHM_FORMAT_ARGB8888:
cogl_format = COGL_PIXEL_FORMAT_BGRA_8888_PRE; cogl_format = COGL_PIXEL_FORMAT_BGRA_8888_PRE;
gbm_format = GBM_FORMAT_ARGB8888; gbm_format = GBM_FORMAT_ARGB8888;
break; break;
case WL_SHM_FORMAT_XRGB8888: case WL_SHM_FORMAT_XRGB8888:
cogl_format = COGL_PIXEL_FORMAT_BGRA_8888; cogl_format = COGL_PIXEL_FORMAT_BGRA_8888;
gbm_format = GBM_FORMAT_XRGB8888; gbm_format = GBM_FORMAT_XRGB8888;
break; break;
#endif #endif
default: default:
g_warn_if_reached (); g_warn_if_reached ();
cogl_format = COGL_PIXEL_FORMAT_ARGB_8888; cogl_format = COGL_PIXEL_FORMAT_ARGB_8888;
gbm_format = GBM_FORMAT_ARGB8888; gbm_format = GBM_FORMAT_ARGB8888;
} }
image->texture = cogl_texture_2d_new_from_data (cogl_context, image->texture = cogl_texture_2d_new_from_data (cogl_context,
...@@ -390,7 +390,7 @@ meta_cursor_image_load_from_buffer (MetaCursorTracker *tracker, ...@@ -390,7 +390,7 @@ meta_cursor_image_load_from_buffer (MetaCursorTracker *tracker,
if (!image->bo) if (!image->bo)
meta_warning ("Importing HW cursor from wl_buffer failed\n"); meta_warning ("Importing HW cursor from wl_buffer failed\n");
} }
} }
} }
MetaCursorReference * MetaCursorReference *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment