Kernel - Start on SHM 'driver' (and common in-memory finddir/readdir)
[tpg/acess2.git] / KernelLand / Kernel / include / api_drv_video.h
index 43d91d7..4607b85 100644 (file)
@@ -217,12 +217,12 @@ typedef struct sVideo_IOCtl_Pos
  */\r
 typedef struct sVideo_IOCtl_Bitmap\r
 {\r
-       Sint16  W;      //!< Width of image\r
-       Sint16  H;      //!< Height of image\r
+       Uint16  W;      //!< Width of image\r
+       Uint16  H;      //!< Height of image\r
        Sint16  XOfs;   //!< X Offset of center\r
        Sint16  YOfs;   //!< Y Offset of center\r
        Uint32  Data[]; //!< Image data (ARGB array)\r
-}      tVideo_IOCtl_Bitmap;\r
+} PACKED       tVideo_IOCtl_Bitmap;\r
 \r
 /**\r
  * \brief Virtual Terminal Representation of a character\r
@@ -273,6 +273,10 @@ extern int giVT_CharHeight;
  * easing the driver development and reducing code duplication.\r
  */\r
 extern void    VT_Font_Render(Uint32 Codepoint, void *Buffer, int Depth, int Pitch, Uint32 BGC, Uint32 FGC);\r
+/**\r
+ * \brief Convert a colour from 24bpp 8:8:8 to 12bpp 4:4:4\r
+ */\r
+extern Uint16  VT_Colour24to12(Uint32 Col24);\r
 /**\r
  * \fn Uint32 VT_Colour12to24(Uint16 Col12)\r
  * \brief Converts a colour from 12bpp to 24bpp\r

UCC git Repository :: git.ucc.asn.au