all effects work under OpenGL now.
authorTobias Gläßer <tobi.web@gmx.de>
Mon, 2 Feb 2004 20:36:56 +0000 (20:36 +0000)
committerTobias Gläßer <tobi.web@gmx.de>
Mon, 2 Feb 2004 20:36:56 +0000 (20:36 +0000)
SVN-Revision: 115

src/intro.c
src/player.c
src/special.c
src/world.c

index 7df97b2..0efb9b5 100644 (file)
@@ -231,7 +231,7 @@ int intro(void)
              dest.w = src.w;
              dest.h = src.h;
              
-             SDL_BlitSurface(gown_upset.sdl_surface, &src, screen, &dest);
+             texture_draw_part(&gown_upset,src.x,src.y,dest.x,dest.y,dest.w,dest.h,NO_UPDATE);
              
              height[j] = height[j] - height_speed[j];
              
index e2f45f5..bacbe30 100644 (file)
@@ -711,7 +711,6 @@ void player_handle_vertical_input(player_type *pplayer)
 
   void player_draw(player_type* pplayer)
   {
-
     if (!timer_started(&pplayer->safe_timer) || (frame % 2) == 0)
       {
         if (pplayer->size == SMALL)
@@ -918,7 +917,6 @@ void player_handle_vertical_input(player_type *pplayer)
               }
           }
       }
-
   }
 
   void player_collision(player_type* pplayer, void* p_c_object, int c_object)
index e399379..ea6f6fc 100644 (file)
@@ -182,17 +182,12 @@ void upgrade_draw(upgrade_type* pupgrade)
           dest.w = 32;
           dest.h = pupgrade->base.height;
 
-          src.x = 0;
-          src.y = 0;
-          src.w = 32;
-          src.h = pupgrade->base.height;
-
           if (pupgrade->kind == UPGRADE_MINTS)
-            SDL_BlitSurface(img_mints.sdl_surface, &src, screen, &dest);
+           texture_draw_part(&img_mints,0,0,dest.x,dest.y,dest.w,dest.h,NO_UPDATE);
           else if (pupgrade->kind == UPGRADE_COFFEE)
-            SDL_BlitSurface(img_coffee.sdl_surface, &src, screen, &dest);
+           texture_draw_part(&img_coffee,0,0,dest.x,dest.y,dest.w,dest.h,NO_UPDATE);
           else if (pupgrade->kind == UPGRADE_HERRING)
-            SDL_BlitSurface(img_golden_herring.sdl_surface, &src, screen, &dest);
+           texture_draw_part(&img_golden_herring,0,0,dest.x,dest.y,dest.w,dest.h,NO_UPDATE);
         }
       else
         {
index e664e14..ad2724c 100644 (file)
@@ -87,7 +87,7 @@ void broken_brick_draw(broken_brick_type* pbroken_brick)
           dest.w = 16;
           dest.h = 16;
 
-          SDL_BlitSurface(img_brick[0].sdl_surface, &src, screen, &dest);
+         texture_draw_part(&img_brick[0],src.x,src.y,dest.x,dest.y,dest.w,dest.h,NO_UPDATE);
         }
 }