Mercurial > sdl-ios-xcode
diff src/video/SDL_blendpoint.c @ 5143:e743b9c3f6d6
Making the API simpler, the blend modes are "none, blend, add" and are supported by all renderers.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 31 Jan 2011 23:23:57 -0800 |
parents | aa8888658021 |
children |
line wrap: on
line diff
--- a/src/video/SDL_blendpoint.c Mon Jan 31 22:53:45 2011 -0800 +++ b/src/video/SDL_blendpoint.c Mon Jan 31 23:23:57 2011 -0800 @@ -36,9 +36,6 @@ case SDL_BLENDMODE_ADD: DRAW_SETPIXELXY_ADD_RGB555(x, y); break; - case SDL_BLENDMODE_MOD: - DRAW_SETPIXELXY_MOD_RGB555(x, y); - break; default: DRAW_SETPIXELXY_RGB555(x, y); break; @@ -59,9 +56,6 @@ case SDL_BLENDMODE_ADD: DRAW_SETPIXELXY_ADD_RGB565(x, y); break; - case SDL_BLENDMODE_MOD: - DRAW_SETPIXELXY_MOD_RGB565(x, y); - break; default: DRAW_SETPIXELXY_RGB565(x, y); break; @@ -82,9 +76,6 @@ case SDL_BLENDMODE_ADD: DRAW_SETPIXELXY_ADD_RGB888(x, y); break; - case SDL_BLENDMODE_MOD: - DRAW_SETPIXELXY_MOD_RGB888(x, y); - break; default: DRAW_SETPIXELXY_RGB888(x, y); break; @@ -105,9 +96,6 @@ case SDL_BLENDMODE_ADD: DRAW_SETPIXELXY_ADD_ARGB8888(x, y); break; - case SDL_BLENDMODE_MOD: - DRAW_SETPIXELXY_MOD_ARGB8888(x, y); - break; default: DRAW_SETPIXELXY_ARGB8888(x, y); break; @@ -131,9 +119,6 @@ case SDL_BLENDMODE_ADD: DRAW_SETPIXELXY2_ADD_RGB(x, y); break; - case SDL_BLENDMODE_MOD: - DRAW_SETPIXELXY2_MOD_RGB(x, y); - break; default: DRAW_SETPIXELXY2_RGB(x, y); break; @@ -147,9 +132,6 @@ case SDL_BLENDMODE_ADD: DRAW_SETPIXELXY4_ADD_RGB(x, y); break; - case SDL_BLENDMODE_MOD: - DRAW_SETPIXELXY4_MOD_RGB(x, y); - break; default: DRAW_SETPIXELXY4_RGB(x, y); break; @@ -177,9 +159,6 @@ case SDL_BLENDMODE_ADD: DRAW_SETPIXELXY4_ADD_RGBA(x, y); break; - case SDL_BLENDMODE_MOD: - DRAW_SETPIXELXY4_MOD_RGBA(x, y); - break; default: DRAW_SETPIXELXY4_RGBA(x, y); break;