mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-10-26 12:27:44 +00:00 
			
		
		
		
	Removed SlowBlitPixelAccess_Unknown
This wasn't actually set anywhere, and not needed.
This commit is contained in:
		| @@ -26,7 +26,6 @@ | |||||||
|  |  | ||||||
| typedef enum | typedef enum | ||||||
| { | { | ||||||
|     SlowBlitPixelAccess_Unknown, |  | ||||||
|     SlowBlitPixelAccess_Index8, |     SlowBlitPixelAccess_Index8, | ||||||
|     SlowBlitPixelAccess_RGB, |     SlowBlitPixelAccess_RGB, | ||||||
|     SlowBlitPixelAccess_RGBA, |     SlowBlitPixelAccess_RGBA, | ||||||
| @@ -95,8 +94,6 @@ void SDL_Blit_Slow(SDL_BlitInfo *info) | |||||||
|             src = (info->src + (srcy * info->src_pitch) + (srcx * srcbpp)); |             src = (info->src + (srcy * info->src_pitch) + (srcx * srcbpp)); | ||||||
|  |  | ||||||
|             switch (src_access) { |             switch (src_access) { | ||||||
|             case SlowBlitPixelAccess_Unknown: |  | ||||||
|                 break; |  | ||||||
|             case SlowBlitPixelAccess_Index8: |             case SlowBlitPixelAccess_Index8: | ||||||
|                 srcpixel = *src; |                 srcpixel = *src; | ||||||
|                 srcR = src_pal->colors[srcpixel].r; |                 srcR = src_pal->colors[srcpixel].r; | ||||||
| @@ -151,8 +148,6 @@ void SDL_Blit_Slow(SDL_BlitInfo *info) | |||||||
|             } |             } | ||||||
|             if ((flags & (SDL_COPY_BLEND | SDL_COPY_BLEND_PREMULTIPLIED | SDL_COPY_ADD | SDL_COPY_ADD_PREMULTIPLIED | SDL_COPY_MOD | SDL_COPY_MUL))) { |             if ((flags & (SDL_COPY_BLEND | SDL_COPY_BLEND_PREMULTIPLIED | SDL_COPY_ADD | SDL_COPY_ADD_PREMULTIPLIED | SDL_COPY_MOD | SDL_COPY_MUL))) { | ||||||
|                 switch (dst_access) { |                 switch (dst_access) { | ||||||
|                 case SlowBlitPixelAccess_Unknown: |  | ||||||
|                     break; |  | ||||||
|                 case SlowBlitPixelAccess_Index8: |                 case SlowBlitPixelAccess_Index8: | ||||||
|                     dstpixel = *dst; |                     dstpixel = *dst; | ||||||
|                     dstR = dst_pal->colors[dstpixel].r; |                     dstR = dst_pal->colors[dstpixel].r; | ||||||
| @@ -279,8 +274,6 @@ void SDL_Blit_Slow(SDL_BlitInfo *info) | |||||||
|             } |             } | ||||||
|  |  | ||||||
|             switch (dst_access) { |             switch (dst_access) { | ||||||
|             case SlowBlitPixelAccess_Unknown: |  | ||||||
|                 break; |  | ||||||
|             case SlowBlitPixelAccess_Index8: |             case SlowBlitPixelAccess_Index8: | ||||||
|                 RGB332_FROM_RGB(dstpixel, dstR, dstG, dstB); |                 RGB332_FROM_RGB(dstpixel, dstR, dstG, dstB); | ||||||
|                 if (info->table) { |                 if (info->table) { | ||||||
| @@ -431,8 +424,6 @@ static void ReadFloatPixel(Uint8 *pixels, SlowBlitPixelAccess access, const SDL_ | |||||||
|     float v[4]; |     float v[4]; | ||||||
|  |  | ||||||
|     switch (access) { |     switch (access) { | ||||||
|     case SlowBlitPixelAccess_Unknown: |  | ||||||
|         break; |  | ||||||
|     case SlowBlitPixelAccess_Index8: |     case SlowBlitPixelAccess_Index8: | ||||||
|         pixel = *pixels; |         pixel = *pixels; | ||||||
|         fR = (float)pal->colors[pixel].r / 255.0f; |         fR = (float)pal->colors[pixel].r / 255.0f; | ||||||
| @@ -616,8 +607,6 @@ static void WriteFloatPixel(Uint8 *pixels, SlowBlitPixelAccess access, const SDL | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     switch (access) { |     switch (access) { | ||||||
|     case SlowBlitPixelAccess_Unknown: |  | ||||||
|         break; |  | ||||||
|     case SlowBlitPixelAccess_Index8: |     case SlowBlitPixelAccess_Index8: | ||||||
|         R = (Uint8)SDL_roundf(SDL_clamp(fR, 0.0f, 1.0f) * 7.0f); |         R = (Uint8)SDL_roundf(SDL_clamp(fR, 0.0f, 1.0f) * 7.0f); | ||||||
|         G = (Uint8)SDL_roundf(SDL_clamp(fG, 0.0f, 1.0f) * 7.0f); |         G = (Uint8)SDL_roundf(SDL_clamp(fG, 0.0f, 1.0f) * 7.0f); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sam Lantinga
					Sam Lantinga