summaryrefslogtreecommitdiff
path: root/apps/macosx
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-03-08 17:25:56 +0100
committerSebastian Rasmussen <sebras@hotmail.com>2008-03-08 17:25:56 +0100
commite921e12bcfa3a343eac5e4b7ba3f2566f5eff49f (patch)
tree5ccf283bb19bb0f45c6a7ce66a00eeb395fa0817 /apps/macosx
parentfce08043c7b939ecefb44e22852513b4d60f3ac4 (diff)
downloadmupdf-e921e12bcfa3a343eac5e4b7ba3f2566f5eff49f.tar.xz
Whitespace fixes.
Diffstat (limited to 'apps/macosx')
-rw-r--r--apps/macosx/macpdf.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/apps/macosx/macpdf.c b/apps/macosx/macpdf.c
index 90197cb5..7ae90093 100644
--- a/apps/macosx/macpdf.c
+++ b/apps/macosx/macpdf.c
@@ -80,7 +80,7 @@ view_construct(EventRef inEvent)
pdf = (pdfapp_t *)malloc(sizeof(pdfapp_t));
require_action(pdf != NULL, CantMalloc, err = memFullErr);
-
+
pdfapp_init(pdf);
err = GetEventParameter(inEvent, kEventParamHIObjectInstance,
@@ -113,16 +113,16 @@ view_initialize(EventHandlerCallRef inCallRef, EventRef inEvent,
OSStatus err;
HIRect bounds;
HIViewRef view = (HIViewRef)pdf->userdata;
-
+
err = CallNextEventHandler(inCallRef, inEvent);
require_noerr(err, TroubleInSuperClass);
HIViewGetBounds (view, &bounds);
pdf->scrw = bounds.size.width;
pdf->scrh = bounds.size.height;
-
+
pdfapp_open(pdf, gDefaultFilename);
-
+
TroubleInSuperClass:
return err;
}
@@ -400,7 +400,7 @@ int main(int argc, char *argv[])
WindowRef window;
pdfapp_t pdf;
-
+
fz_cpudetect();
fz_accelerate();
@@ -413,7 +413,7 @@ int main(int argc, char *argv[])
err = SetMenuBarFromNib(nibRef, CFSTR("MenuBar"));
require_noerr(err, CantSetMenuBar);
-
+
err = CreateWindowFromNib(nibRef, CFSTR("MainWindow"), &window);
require_noerr(err, CantCreateWindow);
@@ -423,7 +423,7 @@ int main(int argc, char *argv[])
pdfapp_init(&pdf);
pdfapp_open(&pdf, gDefaultFilename);
-
+
ShowWindow(window);
RunApplicationEventLoop();
@@ -436,3 +436,4 @@ int main(int argc, char *argv[])
return err;
}
+