+void Video_Update(void)
+{
+ //seek(giTerminalFD, 0, SEEK_SET);
+ seek(giTerminalFD, 0, 1);
+ write(giTerminalFD, gpScreenBuffer, giScreenWidth*giScreenHeight*4);
+}
+
+void Video_SetCursorPos(short X, short Y)
+{
+ struct {
+ uint16_t x;
+ uint16_t y;
+ } pos;
+ pos.x = giVideo_CursorX = X;
+ pos.y = giVideo_CursorY = Y;
+ ioctl(giTerminalFD, TERM_IOCTL_GETSETCURSOR, &pos);
+}
+
+void Video_FillRect(short X, short Y, short W, short H, uint32_t Color)
+{
+ uint32_t *buf = gpScreenBuffer + Y*giScreenWidth + X;
+
+ _SysDebug("Video_FillRect: (X=%i, Y=%i, W=%i, H=%i, Color=%08x)",
+ X, Y, W, H, Color);
+
+ if(W < 0 || X < 0 || X >= giScreenWidth) return ;
+ if(X + W > giScreenWidth) W = giScreenWidth - X;
+
+ if(H < 0 || Y < 0 || Y >= giScreenHeight) return ;
+ if(Y + H > giScreenHeight) H = giScreenHeight - Y;
+
+ while( H -- )
+ {
+ memset32( buf, Color, W );
+ buf += giScreenWidth;
+ }
+}
+
+void Video_DrawRect(short X, short Y, short W, short H, uint32_t Color)
+{
+ Video_FillRect(X, Y, W, 1, Color);
+ Video_FillRect(X, Y+H-1, W, 1, Color);
+ Video_FillRect(X, Y, 1, H, Color);
+ Video_FillRect(X+W-1, Y, 1, H, Color);
+}
+
+/**
+ * \brief Draw an image to the screen
+ * \todo Maybe have support for an offset in the image
+ */
+void Video_DrawImage(short X, short Y, short W, short H, tImage *Image)