X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Ftpl_drv_video.h;h=b84a97e2d86ffcac8154eb35fc449830356c3300;hb=391af300bd045791b8aaf50cf44b2d503c763213;hp=8f22c97d664d595f8f31542c87f994bc7b389e2a;hpb=8a867fdf503d26e151bcc084a7147ba0f62271b0;p=tpg%2Facess2.git diff --git a/Kernel/include/tpl_drv_video.h b/Kernel/include/tpl_drv_video.h index 8f22c97d..b84a97e2 100644 --- a/Kernel/include/tpl_drv_video.h +++ b/Kernel/include/tpl_drv_video.h @@ -51,14 +51,24 @@ struct sVideo_IOCtl_Mode { short id; //!< Mide ID Uint16 width; //!< Width Uint16 height; //!< Height - Uint16 bpp; //!< Bits per Pixel + Uint8 bpp; //!< Bits per Pixel + Uint8 flags; //!< Mode Flags }; +typedef struct sVideo_IOCtl_Mode tVideo_IOCtl_Mode; //!< Mode Type +/** + * \brief Text Mode Flag + * \note A text mode should have the ::sVideo_IOCtl_Mode.bpp set to 12 + */ +#define VIDEO_FLAG_TEXT 0x1 +#define VIDEO_FLAG_SLOW 0x2 //!< Non-accelerated mode + +typedef struct sVideo_IOCtl_Pos tVideo_IOCtl_Pos; //!< Position Type +/** + */ struct sVideo_IOCtl_Pos { - Sint16 x; - Sint16 y; + Sint16 x; //!< X Coordinate + Sint16 y; //!< Y Coordinate }; -typedef struct sVideo_IOCtl_Mode tVideo_IOCtl_Mode; //!< Mode Type -typedef struct sVideo_IOCtl_Pos tVideo_IOCtl_Pos; //!< Mode Type /** * \struct sVT_Char @@ -81,4 +91,9 @@ typedef struct sVT_Char tVT_Char; #define VT_COL_LTGREY 0x0CCC #define VT_COL_WHITE 0x0FFF +extern int giVT_CharWidth; +extern int giVT_CharHeight; +extern void VT_Font_Render(Uint32 Codepoint, void *Buffer, int Pitch, Uint32 BGC, Uint32 FGC); +extern Uint32 VT_Colour12to24(Uint16 Col12); + #endif