Skip to content

Commit

Permalink
[main app] Remove ugly scroll effect
Browse files Browse the repository at this point in the history
  • Loading branch information
DC-SWAT committed Jun 29, 2017
1 parent c5e3731 commit f2263f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions applications/main/modules/module.c
Expand Up @@ -307,28 +307,14 @@ static void *ClockThread() {

void MainApp_SlideLeft() {
if(self.cur_x > 0) {

for(int x = 0; x < self.panel_area.w; x += 10) {
self.cur_x -= 10;
GUI_PanelSetXOffset(self.panel, self.cur_x);
thd_sleep(5);
}

thd_sleep(50);
self.cur_x -= self.panel_area.w;
GUI_PanelSetXOffset(self.panel, self.cur_x);
}
}

void MainApp_SlideRight() {
if(self.x > self.cur_x) {

for(int x = 0; x < self.panel_area.w; x += 10) {
self.cur_x += 10;
GUI_PanelSetXOffset(self.panel, self.cur_x);
thd_sleep(5);
}

thd_sleep(50);
self.cur_x += self.panel_area.w;
GUI_PanelSetXOffset(self.panel, self.cur_x);
}
}
Expand Down
Binary file modified build/apps/main/modules/app_main.klf
Binary file not shown.

0 comments on commit f2263f2

Please sign in to comment.