diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/lcd-bitmap-common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c index f122e336d7..b0be687ed2 100644 --- a/firmware/drivers/lcd-bitmap-common.c +++ b/firmware/drivers/lcd-bitmap-common.c | |||
@@ -81,6 +81,14 @@ static void lcd_gradient_rect(int x1, int x2, int y, unsigned h, | |||
81 | } | 81 | } |
82 | #endif | 82 | #endif |
83 | 83 | ||
84 | void LCDFN(set_framebuffer)(FBFN(data) *fb) | ||
85 | { | ||
86 | if (fb) | ||
87 | LCDFN(framebuffer) = fb; | ||
88 | else | ||
89 | LCDFN(framebuffer) = &LCDFN(static_framebuffer)[0][0]; | ||
90 | } | ||
91 | |||
84 | /* | 92 | /* |
85 | * draws the borders of the current viewport | 93 | * draws the borders of the current viewport |
86 | **/ | 94 | **/ |