diff options
| author | Starla Insigna <starla4444@gmail.com> | 2013-08-25 14:41:26 -0400 | 
|---|---|---|
| committer | Starla Insigna <starla4444@gmail.com> | 2013-08-25 14:41:26 -0400 | 
| commit | 387685d34e6c4ebee776a700a01fed4df05446be (patch) | |
| tree | 1ce4f92037f77fbaee93225b44199cefa215f8f1 /mazeoflife.cpp | |
| parent | 8ac5ac0365569cd8fab1ba6360a09e748a4fa299 (diff) | |
| download | mazeoflife-387685d34e6c4ebee776a700a01fed4df05446be.tar.gz mazeoflife-387685d34e6c4ebee776a700a01fed4df05446be.tar.bz2 mazeoflife-387685d34e6c4ebee776a700a01fed4df05446be.zip | |
Replaced internal resources with external ones for compatibility
Diffstat (limited to 'mazeoflife.cpp')
| -rw-r--r-- | mazeoflife.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
| 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[]) | |||
| 33 | SDL_WM_SetCaption("Maze Of Life", NULL); | 33 | SDL_WM_SetCaption("Maze Of Life", NULL); | 
| 34 | 34 | ||
| 35 | SDL_Surface* icon; | 35 | SDL_Surface* icon; | 
| 36 | LOADIMAGE(icon,icon) | 36 | icon = SDL_LoadBMP("icon.bmp"); | 
| 37 | SDL_WM_SetIcon(icon, NULL); | 37 | SDL_WM_SetIcon(icon, NULL); | 
| 38 | 38 | ||
| 39 | /* | 39 | /* | 
| @@ -118,8 +118,7 @@ Uint32 tick(Uint32 interval, void *param) | |||
| 118 | 118 | ||
| 119 | TTF_Font* loadFont(int size) | 119 | TTF_Font* loadFont(int size) | 
| 120 | { | 120 | { | 
| 121 | SDL_RWops* mono_rw = SDL_RWFromMem(&RESNAME(mono_ttf,start), (int) &RESNAME(mono_ttf,size)); | 121 | TTF_Font* tmpfont = TTF_OpenFont("mono.ttf", size); | 
| 122 | TTF_Font* tmpfont = TTF_OpenFontRW(mono_rw, 1, size); | ||
| 123 | 122 | ||
| 124 | if (tmpfont == NULL) | 123 | if (tmpfont == NULL) | 
| 125 | { | 124 | { | 
