summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rockaux.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rockaux.c')
-rw-r--r--apps/plugins/lua/rockaux.c44
1 files changed, 24 insertions, 20 deletions
diff --git a/apps/plugins/lua/rockaux.c b/apps/plugins/lua/rockaux.c
index 25bace3451..73fe458889 100644
--- a/apps/plugins/lua/rockaux.c
+++ b/apps/plugins/lua/rockaux.c
@@ -133,28 +133,32 @@ int splash_scroller(int timeout, const char* str)
133 } 133 }
134 134
135 rb->lcd_update(); 135 rb->lcd_update();
136 136 if (timeout >= TIMEOUT_BLOCK)
137 action = rb->get_action(CONTEXT_STD, timeout);
138 switch(action)
139 { 137 {
140 case ACTION_STD_OK: 138 action = rb->get_action(CONTEXT_STD, timeout);
141 case ACTION_STD_CANCEL: 139 switch(action)
142 cycles--; 140 {
143 /* Fall Through */ 141 case ACTION_STD_OK:
144 case ACTION_NONE: 142 case ACTION_STD_CANCEL:
145 cycles--; 143 cycles--;
146 break; 144 /* Fall Through */
147 case ACTION_STD_PREV: 145 case ACTION_NONE:
148 timeout = TIMEOUT_BLOCK; /* disable timeout */ 146 cycles--;
149 if(firstline > 0) 147 break;
150 firstline--; 148 case ACTION_STD_PREV:
151 break; 149 timeout = TIMEOUT_BLOCK; /* disable timeout */
152 case ACTION_STD_NEXT: 150 if(firstline > 0)
153 timeout = TIMEOUT_BLOCK; /* disable timeout */ 151 firstline--;
154 if (linesdisp == max_lines) 152 break;
155 firstline++; 153 case ACTION_STD_NEXT:
156 break; 154 timeout = TIMEOUT_BLOCK; /* disable timeout */
155 if (linesdisp == max_lines)
156 firstline++;
157 break;
158 }
157 } 159 }
160 else
161 break;
158 } 162 }
159 return action; 163 return action;
160} 164}