Kernel/IPStack - (minor) TODO retransmit timer
[tpg/acess2.git] / KernelLand / Kernel / include / api_drv_video.h
index ff9c395..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
@@ -341,6 +345,10 @@ typedef struct sDrvUtil_Video_BufInfo
         * \brief Bit depth of the framebuffer\r
         */\r
        short   Depth;\r
+       /**\r
+        * \brief Cached copy of the screens state (only used if not NULL)\r
+        */\r
+       void    *BackBuffer;\r
        /*\r
         * \}\r
         */\r

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