From fd32afbe26db135be05943c7c26883e5b48e2790 Mon Sep 17 00:00:00 2001 From: Marcel `sdrfnord` McKinnon Date: Fri, 5 Apr 2013 23:15:18 +0200 Subject: firmware/fb: Implemtented fb_bw8_line and fb_set_p(uint16_t x,uint16_t y) Change-Id: Id8856ace2a31ba4ebcd04746e0c96c23a679cc40 --- src/target/firmware/include/fb/framebuffer.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/target/firmware/include/fb/framebuffer.h') diff --git a/src/target/firmware/include/fb/framebuffer.h b/src/target/firmware/include/fb/framebuffer.h index e765b36d..8a565659 100644 --- a/src/target/firmware/include/fb/framebuffer.h +++ b/src/target/firmware/include/fb/framebuffer.h @@ -8,7 +8,7 @@ /* if a color is "special", then the RGB components most likely don't make sense. Use "special" colours when you have to mask out bits with transparency or you have to encode - colours in a fixed color palette... */ + colours in a fixed color palette ... */ #define FB_COLOR_WHITE 0x00ffffffU #define FB_COLOR_BLACK 0x00000000U @@ -31,6 +31,7 @@ struct framebuffer { char name[8]; // keep it short! void (*init)(); // (re)initialize void (*clear)(); // clear display + void (*set_p)(uint16_t x,uint16_t y); // set pixel to fg color void (*boxto)(uint16_t x,uint16_t y); // draw box to xy void (*lineto)(uint16_t x,uint16_t y); // draw line to xy int (*putstr)(char *c,int maxwidth); // put text in current font to fb @@ -66,6 +67,11 @@ fb_lineto(uint16_t x,uint16_t y){ framebuffer->lineto(x,y); } +static inline void +fb_set_p(uint16_t x,uint16_t y){ + framebuffer->set_p(x,y); +} + static inline int fb_putstr(char *str,int maxwidth){ return framebuffer->putstr(str,maxwidth); -- cgit v1.2.3