color.a = 255;
if(!font) exit(1);
- surface = TTF_RenderUTF8_Blended(font, toUTF8("D'angband\83e\83X\83g").c_str(), color);
rwop = SDL_RWFromFile("img\\Title.png", "rb");
error = IMG_GetError();
- surface2 = IMG_LoadPNG_RW(rwop);
+ titleSurface = IMG_LoadPNG_RW(rwop);
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_PRESENTVSYNC);
}
SDL_FillRect(windowSurface, &rect, SDL_MapRGBA(windowSurface->format, 50, 20, 10, 255));
- SDL_BlitSurface(surface, &src, windowSurface, &src);
- SDL_BlitSurface(surface2, &title, windowSurface, &title);
+ SDL_BlitSurface(titleSurface, &title, windowSurface, &title);
if(viewFloorPtr) ViewFloor(viewFloorPtr, 0, 0, 20, 20);