Merge branch 'master' of git.ucc.asn.au:/ipdf/code
[ipdf/code.git] / src / main.h
index 6763042..f1a0172 100644 (file)
@@ -13,11 +13,13 @@ inline void OverlayBMP(Document & doc, const char * input, const char * output,
 {
        View view(doc, bounds, c);
        Screen scr;
-       //view.Render();
        scr.RenderBMP(input);
-       scr.Present();
-       sleep(5);
+       view.Render();
+       sleep(1);
        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))
@@ -57,6 +59,7 @@ inline void MainLoop(Document & doc, const Rect & bounds = Rect(0,0,1,1), const
 
        while (scr.PumpEvents())
        {
+               scr.Clear();
                view.Render();
                scr.Present();
        }

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