src/video/SDL_video.c
branchSDL-1.2
changeset 6111 2280c0954104
parent 4399 ae9c094e9200
child 6125 760a3162e180
equal deleted inserted replaced
6110:676a54593bc4 6111:2280c0954104
   977 		/* Keep the video format, as long as the high 8 bits are
   977 		/* Keep the video format, as long as the high 8 bits are
   978 		   unused or alpha */
   978 		   unused or alpha */
   979 		if ( (vf->Rmask == 0xff) && (vf->Bmask == 0xff0000) ) {
   979 		if ( (vf->Rmask == 0xff) && (vf->Bmask == 0xff0000) ) {
   980 			rmask = 0xff;
   980 			rmask = 0xff;
   981 			bmask = 0xff0000;
   981 			bmask = 0xff0000;
       
   982 		} else if ( vf->Rmask == 0xFF00 && (vf->Bmask = 0xFF000000) ) {
       
   983 			amask = 0x000000FF;
       
   984 			rmask = 0x0000FF00;
       
   985 			gmask = 0x00FF0000;
       
   986 			bmask = 0xFF000000;
   982 		}
   987 		}
   983 		break;
   988 		break;
   984 
   989 
   985 	    default:
   990 	    default:
   986 		/* We have no other optimised formats right now. When/if a new
   991 		/* We have no other optimised formats right now. When/if a new