src/video/SDL_blit_N.c
changeset 5439 3a778c6c0269
parent 5407 40c9d744e595
child 5535 96594ac5fd1a
equal deleted inserted replaced
5438:b705640cb34a 5439:3a778c6c0269
  2121     int srcbpp = srcfmt->BytesPerPixel;
  2121     int srcbpp = srcfmt->BytesPerPixel;
  2122     SDL_PixelFormat *dstfmt = info->dst_fmt;
  2122     SDL_PixelFormat *dstfmt = info->dst_fmt;
  2123     int dstbpp = dstfmt->BytesPerPixel;
  2123     int dstbpp = dstfmt->BytesPerPixel;
  2124     int c;
  2124     int c;
  2125 
  2125 
  2126     /* FIXME: should map alpha to [0..255] correctly! */
       
  2127     while (height--) {
  2126     while (height--) {
  2128         for (c = width; c; --c) {
  2127         for (c = width; c; --c) {
  2129             Uint32 Pixel;
  2128             Uint32 Pixel;
  2130             unsigned sR, sG, sB, sA;
  2129             unsigned sR, sG, sB, sA;
  2131             DISEMBLE_RGBA(src, srcbpp, srcfmt, Pixel, sR, sG, sB, sA);
  2130             DISEMBLE_RGBA(src, srcbpp, srcfmt, Pixel, sR, sG, sB, sA);
  2303     /* Set up some basic variables */
  2302     /* Set up some basic variables */
  2304     srcbpp = srcfmt->BytesPerPixel;
  2303     srcbpp = srcfmt->BytesPerPixel;
  2305     dstbpp = dstfmt->BytesPerPixel;
  2304     dstbpp = dstfmt->BytesPerPixel;
  2306     ckey &= rgbmask;
  2305     ckey &= rgbmask;
  2307 
  2306 
  2308     /* FIXME: should map alpha to [0..255] correctly! */
       
  2309     while (height--) {
  2307     while (height--) {
  2310 		/* *INDENT-OFF* */
  2308 		/* *INDENT-OFF* */
  2311 		DUFFS_LOOP(
  2309 		DUFFS_LOOP(
  2312 		{
  2310 		{
  2313 			DISEMBLE_RGBA(src, srcbpp, srcfmt, Pixel, sR, sG, sB, sA);
  2311 			DISEMBLE_RGBA(src, srcbpp, srcfmt, Pixel, sR, sG, sB, sA);