X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fdemo.h;h=349cc53e6671bb041446ac060e999fd3cea1ddfa;hp=ff58caad5b9ced00f5103b16ff131f3a539ebafc;hb=e8b26db00c934d141f16652cb8dcbeae23b17e48;hpb=b0159ee29e4e616e4506d3cea5aee6ecc97aa93a diff --git a/src/demo.h b/src/demo.h index ff58caa..349cc53 100644 --- a/src/demo.h +++ b/src/demo.h @@ -3,7 +3,10 @@ #include "inttypes.h" -extern int fb_width, fb_height, fb_bpp; +/*extern int fb_width, fb_height, fb_bpp;*/ +#define FB_WIDTH 320 +#define FB_HEIGHT 240 +#define FB_BPP 16 extern uint16_t *fb_pixels; /* system-RAM pixel buffer: use swap_buffers(fb_pixels) */ extern uint16_t *vmem; /* visible video memory pointer */ @@ -70,7 +73,9 @@ void cs_confont(void *fb, int x, int y, int idx); /* helper to print text with cs_font */ void cs_puts_font(cs_font_func csfont, int sz, void *fb, int x, int y, const char *str); -#define cs_dputs(fb, x, y, idx) cs_puts_font(cs_dbgfont, 9, fb, x, y, idx) -#define cs_cputs(fb, x, y, idx) cs_puts_font(cs_confont, 6, fb, x, y, idx) +#define cs_dputs(fb, x, y, str) cs_puts_font(cs_dbgfont, 9, fb, x, y, str) +#define cs_cputs(fb, x, y, str) cs_puts_font(cs_confont, 6, fb, x, y, str) + +#define cs_mouseptr(fb, x, y) cs_dbgfont(fb, x, y, 127 - ' ') #endif /* DEMO_H_ */