From 387685d34e6c4ebee776a700a01fed4df05446be Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 25 Aug 2013 14:41:26 -0400 Subject: Replaced internal resources with external ones for compatibility --- mazeoflife.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mazeoflife.cpp') diff --git a/mazeoflife.cpp b/mazeoflife.cpp index 45fc377..9033526 100644 --- a/mazeoflife.cpp +++ b/mazeoflife.cpp @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) SDL_WM_SetCaption("Maze Of Life", NULL); SDL_Surface* icon; - LOADIMAGE(icon,icon) + icon = SDL_LoadBMP("icon.bmp"); SDL_WM_SetIcon(icon, NULL); /* @@ -118,8 +118,7 @@ Uint32 tick(Uint32 interval, void *param) TTF_Font* loadFont(int size) { - SDL_RWops* mono_rw = SDL_RWFromMem(&RESNAME(mono_ttf,start), (int) &RESNAME(mono_ttf,size)); - TTF_Font* tmpfont = TTF_OpenFontRW(mono_rw, 1, size); + TTF_Font* tmpfont = TTF_OpenFont("mono.ttf", size); if (tmpfont == NULL) { -- cgit 1.4.1