25 |
|
|
26 |
#include "SDL_image.h" |
#include "SDL_image.h" |
27 |
#include "SDL_syswm.h" |
#include "SDL_syswm.h" |
28 |
|
#include "SDL_rotozoom.h" |
29 |
|
|
30 |
#include <cassert> |
#include <cassert> |
31 |
#include <string> |
#include <string> |
165 |
SDL_BlitSurface(src->m_surface, 0, m_surface, &dr); |
SDL_BlitSurface(src->m_surface, 0, m_surface, &dr); |
166 |
} |
} |
167 |
|
|
|
|
|
|
|
|
168 |
Uint32 |
Uint32 |
169 |
FrameBuffer::map_color(int r, int g, int b) |
FrameBuffer::map_color(int r, int g, int b) |
170 |
{ |
{ |
211 |
SDL_SetAlpha(get_surface(), SDL_SRCALPHA, a); |
SDL_SetAlpha(get_surface(), SDL_SRCALPHA, a); |
212 |
} |
} |
213 |
|
|
214 |
|
Surface * |
215 |
|
Surface::zoom(int w, int h) |
216 |
|
{ |
217 |
|
SDL_Surface *s_new; |
218 |
|
s_new = zoomSurface( get_surface(), (double)w/width(), (double)h/height(), true); |
219 |
|
return( new Surface( s_new)); |
220 |
|
} |
221 |
|
|
222 |
|
|
223 |
|
|
224 |
//---------------------------------------- |
//---------------------------------------- |
225 |
// Screen implementation |
// Screen implementation |
226 |
//---------------------------------------- |
//---------------------------------------- |