X-Git-Url: http://git.mutantstargoat.com?p=winnie;a=blobdiff_plain;f=src%2Fsdl%2Fgfx.cc;h=7e098b9e4159fea0d79bc73592378aebe97aadf9;hp=74aa94d2c14a7c9df1833bdef7372b6550df4d7e;hb=9261ecb0ad85bdf8b21e17b7309ddaeb76a57d96;hpb=e2626c41c841dbbfb64ddf6341b4e23089036299 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 #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;