use the -newos toolchain even if -elf is present.
[newos.git] / apps / window_server / Renderer_vesa.h
blob16dc7f44bfaa8b1a4cf0effef293a2afe2223251
1 #ifndef _RENDERER_VESA_H
2 #define _RENDERER_VESA_H
4 #include "Renderer_16bpp.h"
6 class Renderer_vesa_555 : public Renderer_RGB555 {
7 public:
8 Renderer_vesa_555(char *baseAddress, int width, int height, int bytesPerRow);
9 virtual void DrawLine(int x1, int y1, int x2, int y2, color32 color, color_space cspace);
10 virtual void FillRect(int x1, int y1, int x2, int y2, color32 color, color_space cspace);
11 virtual void CopyRect(const Rect &source, const Rect &dest);
13 virtual void Blit(int x, int y, const void *image, color_space cspace, int image_width,
14 int image_height, int imageStrideWidth);
15 virtual void StretchBlit(const Rect &imageRect, const Rect &displayRect, const void *image, color_space cspace,
16 int imageStrideWidth);
18 virtual void SetCursorPosition(int x, int y);
20 private:
21 void EraseCursor();
22 void DrawCursor();
24 color555 fSavedBackground[256];
25 int fCursorX, fCursorY;
28 #endif