src/video/SDL_video.c
branchSDL-1.2
changeset 6209 beb988469d26
parent 6137 4720145f848b
equal deleted inserted replaced
6206:ceb6db0058f1 6209:beb988469d26
   985 		/* Keep the video format, as long as the high 8 bits are
   985 		/* Keep the video format, as long as the high 8 bits are
   986 		   unused or alpha */
   986 		   unused or alpha */
   987 		if ( (vf->Rmask == 0xff) && (vf->Bmask == 0xff0000) ) {
   987 		if ( (vf->Rmask == 0xff) && (vf->Bmask == 0xff0000) ) {
   988 			rmask = 0xff;
   988 			rmask = 0xff;
   989 			bmask = 0xff0000;
   989 			bmask = 0xff0000;
   990 		} else if ( vf->Rmask == 0xFF00 && (vf->Bmask = 0xFF000000) ) {
   990 		} else if ( vf->Rmask == 0xFF00 && (vf->Bmask == 0xFF000000) ) {
   991 			amask = 0x000000FF;
   991 			amask = 0x000000FF;
   992 			rmask = 0x0000FF00;
   992 			rmask = 0x0000FF00;
   993 			gmask = 0x00FF0000;
   993 			gmask = 0x00FF0000;
   994 			bmask = 0xFF000000;
   994 			bmask = 0xFF000000;
   995 		}
   995 		}