summaryrefslogtreecommitdiff
path: root/apps/common
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2009-11-29 04:40:31 +0100
committerTor Andersson <tor@ghostscript.com>2009-11-29 04:40:31 +0100
commit2c080e248a47cb94d2069f6523c314d039f70919 (patch)
tree46180621f350edfb63ac578a04125dcd9db31f9d /apps/common
parentaf27ce7576c323665bb9986fbbab63acb6c81c17 (diff)
downloadmupdf-2c080e248a47cb94d2069f6523c314d039f70919.tar.xz
Fix up indentation.
Diffstat (limited to 'apps/common')
-rw-r--r--apps/common/pdfapp.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/apps/common/pdfapp.c b/apps/common/pdfapp.c
index 96eeae00..367a195c 100644
--- a/apps/common/pdfapp.c
+++ b/apps/common/pdfapp.c
@@ -81,11 +81,11 @@ void pdfapp_open(pdfapp_t *app, char *filename)
error = pdf_loadxref(app->xref, filename);
if (error)
{
- fz_catch(error, "trying to repair");
- pdfapp_warn(app, "There was a problem with file \"%s\".\nIt may be corrupted or generated by faulty software.\nTrying to repair the file.", filename);
- error = pdf_repairxref(app->xref, filename);
- if (error)
- pdfapp_error(app, error);
+ fz_catch(error, "trying to repair");
+ pdfapp_warn(app, "There was a problem with file \"%s\".\nIt may be corrupted or generated by faulty software.\nTrying to repair the file.", filename);
+ error = pdf_repairxref(app->xref, filename);
+ if (error)
+ pdfapp_error(app, error);
}
error = pdf_decryptxref(app->xref);
@@ -242,7 +242,7 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage)
pdfapp_error(app, error);
sprintf(buf, "%s - %d/%d", app->doctitle,
- app->pageno, app->pagecount);
+ app->pageno, app->pagecount);
wintitle(app, buf);
}
@@ -258,7 +258,7 @@ static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage)
bbox = fz_transformaabb(ctm, app->page->mediabox);
error = fz_rendertree(&app->image, app->rast, app->page->tree,
- ctm, fz_roundrect(bbox), 1);
+ ctm, fz_roundrect(bbox), 1);
if (error)
pdfapp_error(app, error);
@@ -342,9 +342,9 @@ void pdfapp_onkey(pdfapp_t *app, int c)
switch (c)
{
- /*
- * Zoom and rotate
- */
+ /*
+ * Zoom and rotate
+ */
case '+':
case '=':
@@ -379,9 +379,9 @@ void pdfapp_onkey(pdfapp_t *app, int c)
pdfapp_showpage(app, 0, 1);
break;
- /*
- * Pan view, but dont need to repaint image
- */
+ /*
+ * Pan view, but dont need to repaint image
+ */
case 'w':
app->shrinkwrap = 1;
@@ -409,9 +409,9 @@ void pdfapp_onkey(pdfapp_t *app, int c)
pdfapp_showpage(app, 0, 0);
break;
- /*
- * Page navigation
- */
+ /*
+ * Page navigation
+ */
case 'g':
case '\n':
@@ -438,9 +438,9 @@ void pdfapp_onkey(pdfapp_t *app, int c)
app->pageno = app->hist[--app->histlen];
break;
- /*
- * Back and forth ...
- */
+ /*
+ * Back and forth ...
+ */
case 'p':
panto = PAN_TO_BOTTOM;
@@ -575,7 +575,7 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
else
{
/* scroll up/down, or left/right if
- shift is pressed */
+ shift is pressed */
int isx = (modifiers & (1<<0));
int xstep = isx ? 20 * dir : 0;
int ystep = !isx ? 20 * dir : 0;