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
/
sdl
/
gfx.cc
diff --git
a/src/sdl/gfx.cc
b/src/sdl/gfx.cc
index
74aa94d
..
7e098b9
100644
(file)
--- a/
src/sdl/gfx.cc
+++ b/
src/sdl/gfx.cc
@@
-26,6
+26,7
@@
Author: Eleni Maria Stea <elene.mst@gmail.com>
#include "gfx.h"
#include "shalloc.h"
#include "gfx.h"
#include "shalloc.h"
+#include "winnie.h"
static SDL_Surface *fbsurf;
static SDL_Surface *fbsurf;
@@
-49,6
+50,8
@@
bool init_gfx()
return false;
}
return false;
}
+ get_subsys()->graphics_offset = (int)((char*)gfx - (char*)get_pool());
+
Rect scr_rect(0, 0, 1024, 768);
gfx->screen_rect = scr_rect;
gfx->color_depth = 32;
Rect scr_rect(0, 0, 1024, 768);
gfx->screen_rect = scr_rect;
gfx->color_depth = 32;