/[enigma]/enigma/src/px/video.cc
ViewVC logotype

Diff of /enigma/src/px/video.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by dheck, Sun Jan 12 19:37:19 2003 UTC revision 1.5 by mhawlisch, Thu Apr 3 10:59:42 2003 UTC
# Line 25  Line 25 
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>
# Line 164  FrameBuffer::blit(int x, int y, Surface* Line 165  FrameBuffer::blit(int x, int y, Surface*
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  {  {
# Line 212  Surface::set_alpha(int a) Line 211  Surface::set_alpha(int a)
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  //----------------------------------------  //----------------------------------------

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26