git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow setting type of Real at compilation time
[ipdf/code.git]
/
src
/
main.h
diff --git
a/src/main.h
b/src/main.h
index
f1a0172
..
dedc7c2
100644
(file)
--- a/
src/main.h
+++ b/
src/main.h
@@
-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