summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-01-05 18:37:39 +0100
committerSebastian Rasmussen <sebras@hotmail.com>2008-01-05 18:37:39 +0100
commit023fc541d4c5b5682516a3d1299f176f7bcaf523 (patch)
tree10d47d287a303ec31004bb22a9ea6f9d1bbe71b6 /apps
parent903ad25d6cb4bece0342a8593c0fb52ee1d6b7ac (diff)
downloadmupdf-023fc541d4c5b5682516a3d1299f176f7bcaf523.tar.xz
Code re-ordering.
Diffstat (limited to 'apps')
-rw-r--r--apps/common/pdfapp.c29
1 files changed, 11 insertions, 18 deletions
diff --git a/apps/common/pdfapp.c b/apps/common/pdfapp.c
index ce5084ea..e1753e55 100644
--- a/apps/common/pdfapp.c
+++ b/apps/common/pdfapp.c
@@ -478,28 +478,21 @@ void pdfapp_onkey(pdfapp_t *app, int c)
*/
case 'p':
- panto = DONT_PAN;
- app->pageno--;
- break;
-
- case 'b': case '\b':
- panto = PAN_TO_BOTTOM;
- app->pageno--;
- break;
-
+ panto = DONT_PAN; app->pageno--; break;
case 'n':
- panto = DONT_PAN;
- case 'f': case ' ':
- app->pageno++;
- break;
+ panto = DONT_PAN; app->pageno++; break;
- case 'B':
- app->pageno -= 10;
- break;
+ case 'b':
+ case '\b':
+ panto = PAN_TO_BOTTOM; app->pageno--; break;
+ case 'f':
+ case ' ':
+ panto = PAN_TO_TOP; app->pageno++; break;
+ case 'B':
+ panto = PAN_TO_TOP; app->pageno -= 10; break;
case 'F':
- app->pageno += 10;
- break;
+ panto = PAN_TO_TOP; app->pageno += 10; break;
}
if (app->pageno < 1)