keyrouter: Fix wrong return value
[platform/core/uifw/libds-tizen.git] / src / libds / pixel_format.c
1 #include <drm_fourcc.h>
2
3 #include "pixel_format.h"
4
5 uint32_t
6 convert_wl_shm_format_to_drm(enum wl_shm_format fmt)
7 {
8     switch (fmt) {
9         case WL_SHM_FORMAT_XRGB8888:
10             return DRM_FORMAT_XRGB8888;
11         case WL_SHM_FORMAT_ARGB8888:
12             return DRM_FORMAT_ARGB8888;
13         default:
14             return (uint32_t)fmt;
15     }
16 }