1025 |
m_tilew, m_tileh, 16, |
m_tilew, m_tileh, 16, |
1026 |
0,0,0,0); |
0,0,0,0); |
1027 |
s = Surface::make_surface (SDL_DisplayFormat(ss)); |
s = Surface::make_surface (SDL_DisplayFormat(ss)); |
1028 |
|
SDL_FreeSurface(ss); |
1029 |
#else |
#else |
1030 |
SDL_Surface *ss = SDL_CreateRGBSurface(SDL_SWSURFACE, |
SDL_Surface *ss = SDL_CreateRGBSurface(SDL_SWSURFACE, |
1031 |
m_tilew, m_tileh, 32, |
m_tilew, m_tileh, 32, |
1032 |
0,0,0,0); |
0,0,0,0); |
1033 |
s = Surface::make_surface(ss); |
s = Surface::make_surface(ss); |
1034 |
#endif |
#endif |
|
SDL_FreeSurface(ss); |
|
1035 |
} else { |
} else { |
1036 |
s = m_surface_avail.back(); |
s = m_surface_avail.back(); |
1037 |
m_surface_avail.pop_back(); |
m_surface_avail.pop_back(); |