projects
/
winnie
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added memory allocator
[winnie]
/
src
/
winnie.cc
1
#include "keyboard.h"
2
#include "mouse.h"
3
#include "shalloc.h"
4
#include "winnie.h"
5
6
bool winnie_init()
7
{
8
if(!init_shared_memory()) {
9
return false;
10
}
11
12
if(!init_gfx()) {
13
return false;
14
}
15
16
if(!init_window_manager()) {
17
return false;
18
}
19
20
if(!init_keyboard()) {
21
return false;
22
}
23
24
if(!init_mouse()) {
25
return false;
26
}
27
28
if(!init_text()) {
29
return false;
30
}
31
32
wm->invalidate_region(get_screen_size());
33
return true;
34
}
35
36
void winnie_shutdown()
37
{
38
destroy_gfx();
39
destroy_keyboard();
40
destroy_mouse();
41
destroy_text();
42
43
destroy_shared_memory();
44
}