X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=kern%2Fsrc%2Fdisp.h;fp=kern%2Fsrc%2Fdisp.h;h=0000000000000000000000000000000000000000;hb=4c01dc176867a3486bf2bc4287343a14b891650f;hp=48a4d0a272040743f0dda92933917314aeb7a889;hpb=d67095d0b91873967843394eb090f13e847c1e2d;p=eightysix diff --git a/kern/src/disp.h b/kern/src/disp.h deleted file mode 100644 index 48a4d0a..0000000 --- a/kern/src/disp.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef DISP_H_ -#define DISP_H_ - -#include -#include "con.h" - -enum { - BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LTGREY, - GREY, LTBLUE, LTGREEN, LTCYAN, LTRED, LTMAGENTA, YELLOW, WHITE -}; - -enum { DISP_UNK, DISP_MDA, DISP_CGA, DISP_EGA, DISP_PGA, DISP_MCGA, DISP_VGA }; - -#define DISP_ATTR(fg, bg) (((uint8_t)(bg) << 4) | ((uint8_t)(fg))) - -extern struct console con_disp; -int disp_type; - -void init_disp(void); - -void clear_disp(void); -void scroll_disp(int line); - -void set_cursor(int x, int y); -void set_fgcolor(int color); -void set_bgcolor(int color); - -void draw_glyph(int x, int y, int c, int attr); -void draw_text(int x, int y, const char *s, int attr); - -#endif /* DISP_H_ */