ecore-drm2: Move defines for CAP_CURSOR sizes to private header
authorChris Michael <cp.michael@samsung.com>
Mon, 27 Mar 2017 15:52:44 +0000 (11:52 -0400)
committerChris Michael <cp.michael@samsung.com>
Tue, 18 Apr 2017 11:55:10 +0000 (07:55 -0400)
As we may need these defines in other files, move them to the private
header so there is access to them.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm2/ecore_drm2_device.c
src/lib/ecore_drm2/ecore_drm2_private.h

index 250a596..fcd639e 100644 (file)
@@ -1,13 +1,5 @@
 #include "ecore_drm2_private.h"
 
-#ifndef DRM_CAP_CURSOR_WIDTH
-# define DRM_CAP_CURSOR_WIDTH 0x8
-#endif
-
-#ifndef DRM_CAP_CURSOR_HEIGHT
-# define DRM_CAP_CURSOR_HEIGHT 0x9
-#endif
-
 #ifndef DRM_CAP_DUMB_PREFER_SHADOW
 # define DRM_CAP_DUMB_PREFER_SHADOW 0x4
 #endif
index 80804ec..0c5937d 100644 (file)
@@ -661,6 +661,14 @@ struct _Ecore_Drm2_Atomic_State
 };
 # endif
 
+# ifndef DRM_CAP_CURSOR_WIDTH
+#  define DRM_CAP_CURSOR_WIDTH 0x8
+# endif
+
+# ifndef DRM_CAP_CURSOR_HEIGHT
+#  define DRM_CAP_CURSOR_HEIGHT 0x9
+# endif
+
 typedef enum _Ecore_Drm2_Backlight_Type
 {
    ECORE_DRM2_BACKLIGHT_RAW,