X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Finclude%2Fapi_drv_video.h;h=4607b855de2bf8073dba520230290d15f24f0374;hb=d7dcea0e5a8df0f479e99f168a10b9a9535c7ad6;hp=ff9c395b032f8c505bb02f673bdc450a7dc3c43a;hpb=48743e39650eb1ef988380e9d95f27fd40d3a9ce;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/include/api_drv_video.h b/KernelLand/Kernel/include/api_drv_video.h index ff9c395b..4607b855 100644 --- a/KernelLand/Kernel/include/api_drv_video.h +++ b/KernelLand/Kernel/include/api_drv_video.h @@ -217,12 +217,12 @@ typedef struct sVideo_IOCtl_Pos */ typedef struct sVideo_IOCtl_Bitmap { - Sint16 W; //!< Width of image - Sint16 H; //!< Height of image + Uint16 W; //!< Width of image + Uint16 H; //!< Height of image Sint16 XOfs; //!< X Offset of center Sint16 YOfs; //!< Y Offset of center Uint32 Data[]; //!< Image data (ARGB array) -} tVideo_IOCtl_Bitmap; +} PACKED tVideo_IOCtl_Bitmap; /** * \brief Virtual Terminal Representation of a character @@ -273,6 +273,10 @@ extern int giVT_CharHeight; * easing the driver development and reducing code duplication. */ extern void VT_Font_Render(Uint32 Codepoint, void *Buffer, int Depth, int Pitch, Uint32 BGC, Uint32 FGC); +/** + * \brief Convert a colour from 24bpp 8:8:8 to 12bpp 4:4:4 + */ +extern Uint16 VT_Colour24to12(Uint32 Col24); /** * \fn Uint32 VT_Colour12to24(Uint16 Col12) * \brief Converts a colour from 12bpp to 24bpp @@ -341,6 +345,10 @@ typedef struct sDrvUtil_Video_BufInfo * \brief Bit depth of the framebuffer */ short Depth; + /** + * \brief Cached copy of the screens state (only used if not NULL) + */ + void *BackBuffer; /* * \} */