make fb_clear() public
This commit is contained in:
parent
d03a34ab3e
commit
1d3b0a5621
4
src/fb.c
4
src/fb.c
@ -19,9 +19,9 @@ static inline void fb_set_pixel(int x, int y, uint8_t r, uint8_t g, uint8_t b)
|
|||||||
fb.addr[fb.pitch * y + x] = build_pixel(r, g, b);
|
fb.addr[fb.pitch * y + x] = build_pixel(r, g, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void fb_clear(void)
|
void fb_clear(void)
|
||||||
{
|
{
|
||||||
memset32(fb.addr, 0x002C55u, fb.pitch * fb.height);
|
memset32(fb.addr, 0u, fb.pitch * fb.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
void fb_init(uint32_t * addr, uint32_t width, uint32_t height, uint32_t pitch)
|
void fb_init(uint32_t * addr, uint32_t width, uint32_t height, uint32_t pitch)
|
||||||
|
1
src/fb.h
1
src/fb.h
@ -10,5 +10,6 @@ uint32_t fb_width(void);
|
|||||||
uint32_t fb_height(void);
|
uint32_t fb_height(void);
|
||||||
void fb_blend_alpha8(const uint8_t * bitmap, int width, int height, int pitch, int x, int y, uint8_t r, uint8_t g, uint8_t b);
|
void fb_blend_alpha8(const uint8_t * bitmap, int width, int height, int pitch, int x, int y, uint8_t r, uint8_t g, uint8_t b);
|
||||||
void fb_fill(int x, int y, int width, int height, uint8_t r, uint8_t g, uint8_t b);
|
void fb_fill(int x, int y, int width, int height, uint8_t r, uint8_t g, uint8_t b);
|
||||||
|
void fb_clear(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user