summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/init.c b/init.c
new file mode 100644
index 0000000..ad86034
--- /dev/null
+++ b/init.c
@@ -0,0 +1,15 @@
+
+#include "xenon.h"
+#include "screen.h"
+#include "render.h"
+
+int init_done = 0;
+
+void __attribute__ ((constructor)) init()
+{
+ screen.width = 640;
+ screen.height = 480;
+ render_init(screen.width, screen.height);
+ init_done = 1;
+}
+