From 9672c46b1a3ecf2a0c32445f1c1d17f15fd20bb5 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 24 Feb 2020 10:57:05 +0000 Subject: surface: Reorder surface types by usefulness In order to allow client applications to decide which surface to default to, order the types by usefulness to a typical user. Signed-off-by: Daniel Silverstone --- include/libnsfb.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/libnsfb.h b/include/libnsfb.h index d52d821..674df65 100644 --- a/include/libnsfb.h +++ b/include/libnsfb.h @@ -35,13 +35,14 @@ typedef struct nsfb_bbox_s { /** The type of framebuffer surface. */ enum nsfb_type_e { NSFB_SURFACE_NONE = 0, /**< No surface */ - NSFB_SURFACE_RAM, /**< RAM surface */ NSFB_SURFACE_SDL, /**< SDL surface */ - NSFB_SURFACE_LINUX, /**< Linux framebuffer surface */ + NSFB_SURFACE_X, /**< X windows surface */ + NSFB_SURFACE_WL, /**< Wayland surface */ NSFB_SURFACE_VNC, /**< VNC surface */ + NSFB_SURFACE_LINUX, /**< Linux framebuffer surface */ NSFB_SURFACE_ABLE, /**< ABLE framebuffer surface */ - NSFB_SURFACE_X, /**< X windows surface */ - NSFB_SURFACE_WL /**< Wayland surface */ + NSFB_SURFACE_RAM, /**< RAM surface */ + NSFB_SURFACE_COUNT, /**< The number of surface kinds */ }; enum nsfb_format_e { -- cgit v1.2.3