#include #include #include #define RGB15(r, g, b) (((r) << (5+6)) | ((g) << 6) | (b)) void video_init(uint32_t width,uint32_t height, uint32_t f); void video_close(); void video_draw(uint16_t *pixels); void showbitmap( uint32_t wd, uint32_t ht, uint32_t f) { int index; uint16_t j,k; uint8_t r,g,b; uint16_t * bitmap; bitmap=malloc(wd*ht*sizeof(uint16_t)); b=16; index=0; for (j=0;j