X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Finclude%2Fapi_drv_video.h;h=4607b855de2bf8073dba520230290d15f24f0374;hb=9fb3c9f3a8eaaacefc5e01718b2c88512a153e75;hp=43d91d79ef2e1ff5a30f131f37883914a8c59065;hpb=e02f66c7125bf18f77c6c53587238cbd49da2c89;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/include/api_drv_video.h b/KernelLand/Kernel/include/api_drv_video.h index 43d91d79..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