diff options
| author | Eleni Maria Stea <elene.mst@gmail.com> | 2013-03-27 02:13:31 +0200 |
|---|---|---|
| committer | Eleni Maria Stea <elene.mst@gmail.com> | 2013-03-27 02:13:31 +0200 |
| commit | 9261ecb0ad85bdf8b21e17b7309ddaeb76a57d96 (patch) | |
| tree | f5aed07d1e6234c273baf804ec8e607384bd2ce5 /src/sdl/gfx.cc | |
| parent | e2626c41c841dbbfb64ddf6341b4e23089036299 (diff) | |
added struct subsys so that we know each
public struct's position in the shared memory
Diffstat (limited to 'src/sdl/gfx.cc')
| -rw-r--r-- | src/sdl/gfx.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sdl/gfx.cc b/src/sdl/gfx.cc index 74aa94d..7e098b9 100644 --- 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 "winnie.h" static SDL_Surface *fbsurf; @@ -49,6 +50,8 @@ bool init_gfx() 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; |
