Mercurial > sdl-ios-xcode
comparison src/render/software/SDL_blendfillrect.c @ 5187:d976b67150c5
Restored SDL_BLENDMODE_MOD for MAME
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 04 Feb 2011 19:50:56 -0800 |
parents | d72793305335 |
children | 710d00cb3a6a |
comparison
equal
deleted
inserted
replaced
5186:227d81a4b66c | 5187:d976b67150c5 |
---|---|
36 FILLRECT(Uint16, DRAW_SETPIXEL_BLEND_RGB555); | 36 FILLRECT(Uint16, DRAW_SETPIXEL_BLEND_RGB555); |
37 break; | 37 break; |
38 case SDL_BLENDMODE_ADD: | 38 case SDL_BLENDMODE_ADD: |
39 FILLRECT(Uint16, DRAW_SETPIXEL_ADD_RGB555); | 39 FILLRECT(Uint16, DRAW_SETPIXEL_ADD_RGB555); |
40 break; | 40 break; |
41 case SDL_BLENDMODE_MOD: | |
42 FILLRECT(Uint16, DRAW_SETPIXEL_MOD_RGB555); | |
43 break; | |
41 default: | 44 default: |
42 FILLRECT(Uint16, DRAW_SETPIXEL_RGB555); | 45 FILLRECT(Uint16, DRAW_SETPIXEL_RGB555); |
43 break; | 46 break; |
44 } | 47 } |
45 return 0; | 48 return 0; |
56 FILLRECT(Uint16, DRAW_SETPIXEL_BLEND_RGB565); | 59 FILLRECT(Uint16, DRAW_SETPIXEL_BLEND_RGB565); |
57 break; | 60 break; |
58 case SDL_BLENDMODE_ADD: | 61 case SDL_BLENDMODE_ADD: |
59 FILLRECT(Uint16, DRAW_SETPIXEL_ADD_RGB565); | 62 FILLRECT(Uint16, DRAW_SETPIXEL_ADD_RGB565); |
60 break; | 63 break; |
64 case SDL_BLENDMODE_MOD: | |
65 FILLRECT(Uint16, DRAW_SETPIXEL_MOD_RGB565); | |
66 break; | |
61 default: | 67 default: |
62 FILLRECT(Uint16, DRAW_SETPIXEL_RGB565); | 68 FILLRECT(Uint16, DRAW_SETPIXEL_RGB565); |
63 break; | 69 break; |
64 } | 70 } |
65 return 0; | 71 return 0; |
76 FILLRECT(Uint32, DRAW_SETPIXEL_BLEND_RGB888); | 82 FILLRECT(Uint32, DRAW_SETPIXEL_BLEND_RGB888); |
77 break; | 83 break; |
78 case SDL_BLENDMODE_ADD: | 84 case SDL_BLENDMODE_ADD: |
79 FILLRECT(Uint32, DRAW_SETPIXEL_ADD_RGB888); | 85 FILLRECT(Uint32, DRAW_SETPIXEL_ADD_RGB888); |
80 break; | 86 break; |
87 case SDL_BLENDMODE_MOD: | |
88 FILLRECT(Uint32, DRAW_SETPIXEL_MOD_RGB888); | |
89 break; | |
81 default: | 90 default: |
82 FILLRECT(Uint32, DRAW_SETPIXEL_RGB888); | 91 FILLRECT(Uint32, DRAW_SETPIXEL_RGB888); |
83 break; | 92 break; |
84 } | 93 } |
85 return 0; | 94 return 0; |
95 case SDL_BLENDMODE_BLEND: | 104 case SDL_BLENDMODE_BLEND: |
96 FILLRECT(Uint32, DRAW_SETPIXEL_BLEND_ARGB8888); | 105 FILLRECT(Uint32, DRAW_SETPIXEL_BLEND_ARGB8888); |
97 break; | 106 break; |
98 case SDL_BLENDMODE_ADD: | 107 case SDL_BLENDMODE_ADD: |
99 FILLRECT(Uint32, DRAW_SETPIXEL_ADD_ARGB8888); | 108 FILLRECT(Uint32, DRAW_SETPIXEL_ADD_ARGB8888); |
109 break; | |
110 case SDL_BLENDMODE_MOD: | |
111 FILLRECT(Uint32, DRAW_SETPIXEL_MOD_ARGB8888); | |
100 break; | 112 break; |
101 default: | 113 default: |
102 FILLRECT(Uint32, DRAW_SETPIXEL_ARGB8888); | 114 FILLRECT(Uint32, DRAW_SETPIXEL_ARGB8888); |
103 break; | 115 break; |
104 } | 116 } |
119 FILLRECT(Uint16, DRAW_SETPIXEL_BLEND_RGB); | 131 FILLRECT(Uint16, DRAW_SETPIXEL_BLEND_RGB); |
120 break; | 132 break; |
121 case SDL_BLENDMODE_ADD: | 133 case SDL_BLENDMODE_ADD: |
122 FILLRECT(Uint16, DRAW_SETPIXEL_ADD_RGB); | 134 FILLRECT(Uint16, DRAW_SETPIXEL_ADD_RGB); |
123 break; | 135 break; |
136 case SDL_BLENDMODE_MOD: | |
137 FILLRECT(Uint16, DRAW_SETPIXEL_MOD_RGB); | |
138 break; | |
124 default: | 139 default: |
125 FILLRECT(Uint16, DRAW_SETPIXEL_RGB); | 140 FILLRECT(Uint16, DRAW_SETPIXEL_RGB); |
126 break; | 141 break; |
127 } | 142 } |
128 return 0; | 143 return 0; |
132 FILLRECT(Uint32, DRAW_SETPIXEL_BLEND_RGB); | 147 FILLRECT(Uint32, DRAW_SETPIXEL_BLEND_RGB); |
133 break; | 148 break; |
134 case SDL_BLENDMODE_ADD: | 149 case SDL_BLENDMODE_ADD: |
135 FILLRECT(Uint32, DRAW_SETPIXEL_ADD_RGB); | 150 FILLRECT(Uint32, DRAW_SETPIXEL_ADD_RGB); |
136 break; | 151 break; |
152 case SDL_BLENDMODE_MOD: | |
153 FILLRECT(Uint32, DRAW_SETPIXEL_MOD_RGB); | |
154 break; | |
137 default: | 155 default: |
138 FILLRECT(Uint32, DRAW_SETPIXEL_RGB); | 156 FILLRECT(Uint32, DRAW_SETPIXEL_RGB); |
139 break; | 157 break; |
140 } | 158 } |
141 return 0; | 159 return 0; |
158 case SDL_BLENDMODE_BLEND: | 176 case SDL_BLENDMODE_BLEND: |
159 FILLRECT(Uint32, DRAW_SETPIXEL_BLEND_RGBA); | 177 FILLRECT(Uint32, DRAW_SETPIXEL_BLEND_RGBA); |
160 break; | 178 break; |
161 case SDL_BLENDMODE_ADD: | 179 case SDL_BLENDMODE_ADD: |
162 FILLRECT(Uint32, DRAW_SETPIXEL_ADD_RGBA); | 180 FILLRECT(Uint32, DRAW_SETPIXEL_ADD_RGBA); |
181 break; | |
182 case SDL_BLENDMODE_MOD: | |
183 FILLRECT(Uint32, DRAW_SETPIXEL_MOD_RGBA); | |
163 break; | 184 break; |
164 default: | 185 default: |
165 FILLRECT(Uint32, DRAW_SETPIXEL_RGBA); | 186 FILLRECT(Uint32, DRAW_SETPIXEL_RGBA); |
166 break; | 187 break; |
167 } | 188 } |