Allow setting type of Real at compilation time
[ipdf/code.git] / src / main.h
index f1a0172..dedc7c2 100644 (file)
@@ -13,13 +13,12 @@ inline void OverlayBMP(Document & doc, const char * input, const char * output,
 {
        View view(doc, bounds, c);
        Screen scr;
-       scr.RenderBMP(input);
+       if (input != NULL)
+               scr.RenderBMP(input);
        view.Render();
-       sleep(1);
-       scr.ScreenShot(output);
+       if (output != NULL)
+               scr.ScreenShot(output);
        scr.Present();
-       
-       sleep(1);
 }
 
 inline void MainLoop(Document & doc, const Rect & bounds = Rect(0,0,1,1), const Colour & c = Colour(0.f,0.f,0.f,1.f))

UCC git Repository :: git.ucc.asn.au