[mutter] cursor-renderer/native: Remove unnecessary endian check
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cursor-renderer/native: Remove unnecessary endian check
- Date: Fri, 28 Feb 2020 10:37:38 +0000 (UTC)
commit 969ad54feb89c44a6c089ad15b1812fbbd7bf5f2
Author: Robert Mader <robert mader posteo de>
Date: Fri May 24 14:38:10 2019 +0200
cursor-renderer/native: Remove unnecessary endian check
Both cases have the same content.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/526
src/backends/native/meta-cursor-renderer-native.c | 9 ---------
1 file changed, 9 deletions(-)
---
diff --git a/src/backends/native/meta-cursor-renderer-native.c
b/src/backends/native/meta-cursor-renderer-native.c
index 6526d3d76..03f18e8b6 100644
--- a/src/backends/native/meta-cursor-renderer-native.c
+++ b/src/backends/native/meta-cursor-renderer-native.c
@@ -1335,21 +1335,12 @@ realize_cursor_sprite_from_wl_buffer_for_gpu (MetaCursorRenderer *renderer,
switch (wl_shm_buffer_get_format (shm_buffer))
{
-#if G_BYTE_ORDER == G_BIG_ENDIAN
case WL_SHM_FORMAT_ARGB8888:
gbm_format = GBM_FORMAT_ARGB8888;
break;
case WL_SHM_FORMAT_XRGB8888:
gbm_format = GBM_FORMAT_XRGB8888;
break;
-#else
- case WL_SHM_FORMAT_ARGB8888:
- gbm_format = GBM_FORMAT_ARGB8888;
- break;
- case WL_SHM_FORMAT_XRGB8888:
- gbm_format = GBM_FORMAT_XRGB8888;
- break;
-#endif
default:
g_warn_if_reached ();
gbm_format = GBM_FORMAT_ARGB8888;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]