projects
/
winnie
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added memory allocator
[winnie]
/
src
/
winnie.cc
diff --git
a/src/winnie.cc
b/src/winnie.cc
index
4ec10b1
..
a2c61ee
100644
(file)
--- a/
src/winnie.cc
+++ b/
src/winnie.cc
@@
-1,13
+1,22
@@
-#include "winnie.h"
#include "keyboard.h"
#include "mouse.h"
#include "keyboard.h"
#include "mouse.h"
+#include "shalloc.h"
+#include "winnie.h"
bool winnie_init()
{
bool winnie_init()
{
+ if(!init_shared_memory()) {
+ return false;
+ }
+
if(!init_gfx()) {
return false;
}
if(!init_gfx()) {
return false;
}
+ if(!init_window_manager()) {
+ return false;
+ }
+
if(!init_keyboard()) {
return false;
}
if(!init_keyboard()) {
return false;
}
@@
-16,6
+25,10
@@
bool winnie_init()
return false;
}
return false;
}
+ if(!init_text()) {
+ return false;
+ }
+
wm->invalidate_region(get_screen_size());
return true;
}
wm->invalidate_region(get_screen_size());
return true;
}
@@
-25,4
+38,7
@@
void winnie_shutdown()
destroy_gfx();
destroy_keyboard();
destroy_mouse();
destroy_gfx();
destroy_keyboard();
destroy_mouse();
+ destroy_text();
+
+ destroy_shared_memory();
}
}