changed pixel format check to ignore alpha channel
[rocksndiamonds.git] / src / libgame / sdl.c
index a860eeb9e988656a0d26ffbb46f2dd1f04ea346f..73c42b68c023d0e57b72ce967e3935ceee5ac7be 100644 (file)
@@ -223,8 +223,7 @@ static boolean equalSDLPixelFormat(SDL_PixelFormat *format1,
          format1->BytesPerPixel == format2->BytesPerPixel &&
          format1->Rmask         == format2->Rmask &&
          format1->Gmask         == format2->Gmask &&
-         format1->Bmask         == format2->Bmask &&
-         format1->Amask         == format2->Amask);
+         format1->Bmask         == format2->Bmask);
 }
 
 boolean SDLSetNativeSurface(SDL_Surface **surface)
@@ -431,7 +430,7 @@ void SDLInitVideoBuffer(boolean fullscreen)
      should never be drawn to directly, it would do no harm nevertheless. */
 
   /* create additional (symbolic) buffer for double-buffering */
-  ReCreateBitmap(&window, video.width, video.height, video.depth);
+  ReCreateBitmap(&window, video.width, video.height);
 }
 
 static boolean SDLCreateScreen(boolean fullscreen)