From 023fc541d4c5b5682516a3d1299f176f7bcaf523 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 5 Jan 2008 18:37:39 +0100 Subject: Code re-ordering. --- apps/common/pdfapp.c | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) (limited to 'apps') 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) -- cgit v1.2.3