projects
/
winnie
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added struct subsys so that we know each
[winnie]
/
src
/
fbdev
/
gfx.cc
diff --git
a/src/fbdev/gfx.cc
b/src/fbdev/gfx.cc
index
1421348
..
ff86d9c
100644
(file)
--- a/
src/fbdev/gfx.cc
+++ b/
src/fbdev/gfx.cc
@@
-36,6
+36,7
@@
Author: Eleni Maria Stea <elene.mst@gmail.com>
#include "gfx.h"
#include "shalloc.h"
#include "gfx.h"
#include "shalloc.h"
+#include "winnie.h"
#define FRAMEBUFFER_SIZE(xsz, ysz, bpp) ((xsz) * (ysz) * (bpp) / CHAR_BIT)
#define FRAMEBUFFER_SIZE(xsz, ysz, bpp) ((xsz) * (ysz) * (bpp) / CHAR_BIT)
@@
-58,6
+59,8
@@
bool init_gfx()
return false;
}
return false;
}
+ get_subsys()->graphics_offset = (int)((char*)gfx - (char*)get_pool());
+
dev_fd = -1;
if((dev_fd = open("/dev/fb0", O_RDWR)) == -1) {
dev_fd = -1;
if((dev_fd = open("/dev/fb0", O_RDWR)) == -1) {