diff options
Diffstat (limited to 'firmware/drivers/lcd-bitmap-common.c')
-rw-r--r-- | firmware/drivers/lcd-bitmap-common.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c index d09d293c26..8e3b52c246 100644 --- a/firmware/drivers/lcd-bitmap-common.c +++ b/firmware/drivers/lcd-bitmap-common.c | |||
@@ -82,25 +82,19 @@ static void lcd_gradient_rect(int x1, int x2, int y, unsigned h, | |||
82 | #endif | 82 | #endif |
83 | 83 | ||
84 | /* | 84 | /* |
85 | * draws the borders of the viewport, or of current_vp if vp == NULL | 85 | * draws the borders of the current viewport |
86 | **/ | 86 | **/ |
87 | void LCDFN(draw_viewport_rect)(const struct viewport *vp) | 87 | void LCDFN(draw_border_viewport)(void) |
88 | { | 88 | { |
89 | if (vp == NULL) | 89 | LCDFN(drawrect)(0, 0, current_vp->width, current_vp->height); |
90 | LCDFN(drawrect)(0, 0, current_vp->width, current_vp->height); | ||
91 | else | ||
92 | LCDFN(drawrect)(vp->x, vp->y, vp->width, vp->height); | ||
93 | } | 90 | } |
94 | 91 | ||
95 | /* | 92 | /* |
96 | * fills the rectangle formed by vp or by current_vp if vp == NULL | 93 | * fills the rectangle formed by current_vp |
97 | **/ | 94 | **/ |
98 | void LCDFN(fill_viewport_rect)(const struct viewport *vp) | 95 | void LCDFN(fill_viewport)(void) |
99 | { | 96 | { |
100 | if (vp == NULL) | 97 | LCDFN(fillrect)(0, 0, current_vp->width, current_vp->height); |
101 | LCDFN(fillrect)(0, 0, current_vp->width, current_vp->height); | ||
102 | else | ||
103 | LCDFN(fillrect)(vp->x, vp->y, vp->width, vp->height); | ||
104 | } | 98 | } |
105 | 99 | ||
106 | /* put a string at a given pixel position, skipping first ofs pixel columns */ | 100 | /* put a string at a given pixel position, skipping first ofs pixel columns */ |