Bunch-a-bugfixes!
[ipdf/code.git] / src / main.h
index 6763042..9fcc26b 100644 (file)
@@ -13,8 +13,8 @@ inline void OverlayBMP(Document & doc, const char * input, const char * output,
 {
        View view(doc, bounds, c);
        Screen scr;
-       //view.Render();
        scr.RenderBMP(input);
+       view.Render();
        scr.Present();
        sleep(5);
        scr.ScreenShot(output);
@@ -57,6 +57,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