diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/buttonbar.c | 2 | ||||
-rw-r--r-- | apps/gui/splash.c | 4 | ||||
-rw-r--r-- | apps/gui/statusbar.c | 2 | ||||
-rw-r--r-- | apps/plugins/lib/pluginlib_touchscreen.c | 2 | ||||
-rw-r--r-- | apps/screen_access.c | 8 | ||||
-rw-r--r-- | apps/screen_access.h | 4 |
6 files changed, 11 insertions, 11 deletions
diff --git a/apps/gui/buttonbar.c b/apps/gui/buttonbar.c index db94362352..9abd851252 100644 --- a/apps/gui/buttonbar.c +++ b/apps/gui/buttonbar.c | |||
@@ -69,7 +69,7 @@ static void gui_buttonbar_draw_button(struct gui_buttonbar * buttonbar, int num) | |||
69 | vp.width = button_width-1; | 69 | vp.width = button_width-1; |
70 | vp.x = button_width * num; | 70 | vp.x = button_width * num; |
71 | display->set_viewport(&vp); | 71 | display->set_viewport(&vp); |
72 | display->fill_viewport(NULL); | 72 | display->fill_viewport_rect(NULL); |
73 | if(buttonbar->caption[num][0] != 0) | 73 | if(buttonbar->caption[num][0] != 0) |
74 | { | 74 | { |
75 | display->getstringsize(buttonbar->caption[num], &fw, &fh); | 75 | display->getstringsize(buttonbar->caption[num], &fw, &fh); |
diff --git a/apps/gui/splash.c b/apps/gui/splash.c index 8c5f57fdd9..5123e5d8f5 100644 --- a/apps/gui/splash.c +++ b/apps/gui/splash.c | |||
@@ -163,7 +163,7 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap) | |||
163 | #endif | 163 | #endif |
164 | vp.drawmode = (DRMODE_SOLID|DRMODE_INVERSEVID); | 164 | vp.drawmode = (DRMODE_SOLID|DRMODE_INVERSEVID); |
165 | 165 | ||
166 | screen->fill_viewport(NULL); | 166 | screen->fill_viewport_rect(NULL); |
167 | 167 | ||
168 | #if LCD_DEPTH > 1 | 168 | #if LCD_DEPTH > 1 |
169 | if (screen->depth > 1) | 169 | if (screen->depth > 1) |
@@ -174,7 +174,7 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap) | |||
174 | #endif | 174 | #endif |
175 | vp.drawmode = DRMODE_SOLID; | 175 | vp.drawmode = DRMODE_SOLID; |
176 | 176 | ||
177 | screen->draw_viewport(NULL); | 177 | screen->draw_viewport_rect(NULL); |
178 | 178 | ||
179 | /* prepare putting the text */ | 179 | /* prepare putting the text */ |
180 | y = RECT_SPACING; | 180 | y = RECT_SPACING; |
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index a05a11a502..467907c21a 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c | |||
@@ -280,7 +280,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw, struct vi | |||
280 | { | 280 | { |
281 | display->set_viewport(vp); | 281 | display->set_viewport(vp); |
282 | display->set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); | 282 | display->set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); |
283 | display->fill_viewport(NULL); | 283 | display->fill_viewport_rect(NULL); |
284 | display->set_drawmode(DRMODE_SOLID); | 284 | display->set_drawmode(DRMODE_SOLID); |
285 | 285 | ||
286 | if (bar->info.battery_state) | 286 | if (bar->info.battery_state) |
diff --git a/apps/plugins/lib/pluginlib_touchscreen.c b/apps/plugins/lib/pluginlib_touchscreen.c index 3920b8ec18..8b559a4c48 100644 --- a/apps/plugins/lib/pluginlib_touchscreen.c +++ b/apps/plugins/lib/pluginlib_touchscreen.c | |||
@@ -129,7 +129,7 @@ void touchbutton_draw(struct touchbutton *data, int num_buttons) { | |||
129 | } | 129 | } |
130 | 130 | ||
131 | /* Draw bounding box around the button location. */ | 131 | /* Draw bounding box around the button location. */ |
132 | lcd->draw_viewport(NULL); | 132 | lcd->draw_viewport_rect(NULL); |
133 | } | 133 | } |
134 | } | 134 | } |
135 | lcd->set_viewport(NULL); /* Go back to the default viewport */ | 135 | lcd->set_viewport(NULL); /* Go back to the default viewport */ |
diff --git a/apps/screen_access.c b/apps/screen_access.c index e828feafc1..d16a4415fa 100644 --- a/apps/screen_access.c +++ b/apps/screen_access.c | |||
@@ -162,8 +162,8 @@ struct screen screens[NB_SCREENS] = | |||
162 | .update_viewport_rect=&lcd_update_viewport_rect, | 162 | .update_viewport_rect=&lcd_update_viewport_rect, |
163 | .fillrect=&lcd_fillrect, | 163 | .fillrect=&lcd_fillrect, |
164 | .drawrect=&lcd_drawrect, | 164 | .drawrect=&lcd_drawrect, |
165 | .draw_viewport=&lcd_draw_viewport, | 165 | .draw_viewport_rect=&lcd_draw_viewport_rect, |
166 | .fill_viewport=&lcd_fill_viewport, | 166 | .fill_viewport_rect=&lcd_fill_viewport_rect, |
167 | .drawpixel=&lcd_drawpixel, | 167 | .drawpixel=&lcd_drawpixel, |
168 | .drawline=&lcd_drawline, | 168 | .drawline=&lcd_drawline, |
169 | .vline=&lcd_vline, | 169 | .vline=&lcd_vline, |
@@ -255,8 +255,8 @@ struct screen screens[NB_SCREENS] = | |||
255 | .update_viewport_rect=&lcd_remote_update_viewport_rect, | 255 | .update_viewport_rect=&lcd_remote_update_viewport_rect, |
256 | .fillrect=&lcd_remote_fillrect, | 256 | .fillrect=&lcd_remote_fillrect, |
257 | .drawrect=&lcd_remote_drawrect, | 257 | .drawrect=&lcd_remote_drawrect, |
258 | .draw_viewport=&lcd_remote_draw_viewport, | 258 | .draw_viewport_rect=&lcd_remote_draw_viewport_rect, |
259 | .fill_viewport=&lcd_remote_fill_viewport, | 259 | .fill_viewport_rect=&lcd_remote_fill_viewport_rect, |
260 | .drawpixel=&lcd_remote_drawpixel, | 260 | .drawpixel=&lcd_remote_drawpixel, |
261 | .drawline=&lcd_remote_drawline, | 261 | .drawline=&lcd_remote_drawline, |
262 | .vline=&lcd_remote_vline, | 262 | .vline=&lcd_remote_vline, |
diff --git a/apps/screen_access.h b/apps/screen_access.h index fb7aa7bd26..6a4750dbb0 100644 --- a/apps/screen_access.h +++ b/apps/screen_access.h | |||
@@ -117,8 +117,8 @@ struct screen | |||
117 | void (*update_viewport_rect)(int x, int y, int width, int height); | 117 | void (*update_viewport_rect)(int x, int y, int width, int height); |
118 | void (*fillrect)(int x, int y, int width, int height); | 118 | void (*fillrect)(int x, int y, int width, int height); |
119 | void (*drawrect)(int x, int y, int width, int height); | 119 | void (*drawrect)(int x, int y, int width, int height); |
120 | void (*fill_viewport)(const struct viewport *vp); | 120 | void (*fill_viewport_rect)(const struct viewport *vp); |
121 | void (*draw_viewport)(const struct viewport *vp); | 121 | void (*draw_viewport_rect)(const struct viewport *vp); |
122 | void (*drawpixel)(int x, int y); | 122 | void (*drawpixel)(int x, int y); |
123 | void (*drawline)(int x1, int y1, int x2, int y2); | 123 | void (*drawline)(int x1, int y1, int x2, int y2); |
124 | void (*vline)(int x, int y1, int y2); | 124 | void (*vline)(int x, int y1, int y2); |