diff options
author | Alex Auvolat <alex@adnab.me> | 2017-05-03 17:01:21 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2017-05-03 17:01:21 +0200 |
commit | 1a4eecd6a685e727611bbc1ffec696daa50bbaea (patch) | |
tree | c75600cfdc0101e3ad25e3ef4bfcaad06296a418 /src/common/include/proto/fb.h | |
parent | a959c94c1d67e234adbbb96d0d290eaf3bc26ac1 (diff) | |
download | kogata-1a4eecd6a685e727611bbc1ffec696daa50bbaea.tar.gz kogata-1a4eecd6a685e727611bbc1ffec696daa50bbaea.zip |
Mouse cursor!
Diffstat (limited to 'src/common/include/proto/fb.h')
-rw-r--r-- | src/common/include/proto/fb.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/common/include/proto/fb.h b/src/common/include/proto/fb.h index 710ecb1..02c0612 100644 --- a/src/common/include/proto/fb.h +++ b/src/common/include/proto/fb.h @@ -15,16 +15,19 @@ #define FB_MM_BGR32 8 // 4 bytes (32 bits) per pixel, red 0-7, green 8-15, blue 16-23 #define FB_MM_GREY8 10 // 1 byte (8 bits) per pixel greyscale +#define FB_MM_RGBA32 20 // 4 bytes (32 bits), red, green, blue, alpha +#define FB_MM_GA16 21 // 2 bytes (16 bits), grey, alpha + typedef struct { - uint32_t width, height; - uint32_t pitch; // bytes per line - uint32_t bpp; - uint32_t memory_model; + int32_t width, height; + int32_t pitch; // bytes per line + int32_t bpp; + int32_t memory_model; } fb_info_t; typedef struct { - uint32_t x, y; - uint32_t w, h; + int32_t x, y; + int32_t w, h; } fb_region_t; |