summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 62a068f21d..cc1f13a145 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1883,8 +1883,15 @@ bool gui_wps_refresh(struct gui_wps *gwps,
1883 1883
1884 if (update_line) 1884 if (update_line)
1885 { 1885 {
1886 /* calculate alignment and draw the strings */ 1886 if (flags & WPS_REFRESH_SCROLL)
1887 write_line(display, &align, line, flags & WPS_REFRESH_SCROLL); 1887 {
1888 /* if the line is a scrolling one we don't want to update
1889 too often, so that it has the time to scroll */
1890 if (refresh_mode & WPS_REFRESH_SCROLL)
1891 write_line(display, &align, line, true);
1892 }
1893 else
1894 write_line(display, &align, line, false);
1888 } 1895 }
1889 } 1896 }
1890 1897