~silwol/freenukum/trunk

« back to all changes in this revision

Viewing changes to src/fn_level.c

  • Committer: Wolfgang Silbermayr
  • Date: 2009-02-20 08:16:20 UTC
  • Revision ID: wolfgang@silbermayr.at-20090220081620-e53pa1uim6b6a5gx
Backdrop is a FnTexture element instead of a SDL_Surface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
886
886
    SDL_Surface * target,
887
887
    SDL_Rect * targetrect,
888
888
    SDL_Rect * sourcerect,
889
 
    SDL_Surface * backdrop1,
890
 
    SDL_Surface * backdrop2)
 
889
    FnTexture * backdrop1,
 
890
    FnTexture * backdrop2)
891
891
{
892
892
  int x_start = 0;
893
893
  int x_end = FN_LEVEL_WIDTH;
904
904
  SDL_FillRect(lv->surface, sourcerect, 0);
905
905
  */
906
906
  if (backdrop1 != NULL) {
907
 
    SDL_BlitSurface(backdrop1, NULL, lv->surface, sourcerect);
 
907
    fn_texture_blit_to_sdl_surface(
 
908
        backdrop1, NULL, lv->surface, sourcerect);
908
909
  } else {
909
910
    SDL_FillRect(lv->surface, sourcerect, 0);
910
911
  }