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
You can move around a document with Click+Drag!
[ipdf/code.git]
/
src
/
main.cpp
diff --git
a/src/main.cpp
b/src/main.cpp
index
72f29e3
..
1b2073e
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-3,6
+3,7
@@
int main(int argc, char ** argv)
{
Document doc;
int main(int argc, char ** argv)
{
Document doc;
+ srand(time(NULL));
if (argc > 1)
{
for (int i = 2; i < argc; ++i)
if (argc > 1)
{
for (int i = 2; i < argc; ++i)
@@
-11,6
+12,12
@@
int main(int argc, char ** argv)
}
doc.Load(argv[1]);
}
}
doc.Load(argv[1]);
}
+ else
+ {
+ Debug("Add random object");
+ //doc.Add(RECT_FILLED, Rect(Random()*0.5, Random()*0.5, Random()*0.5, Random()*0.5));
+ doc.Add(RECT_FILLED, Rect(0.25,0.25, 0.5, 0.5));
+ }
MainLoop(doc);
return 0;
}
MainLoop(doc);
return 0;
}
UCC
git Repository :: git.ucc.asn.au