Mercurial > repos > blastem
comparison render_sdl.c @ 234:f456ee23d372
Add shadow/higlight info to debug renderer
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 22 Apr 2013 23:56:13 -0700 |
parents | d3266cee02c9 |
children | 7ccc4ae86e07 |
comparison
equal
deleted
inserted
replaced
233:9d10669f2579 | 234:f456ee23d372 |
---|---|
163 if (gen_color & FBUF_BIT_PRIORITY) { | 163 if (gen_color & FBUF_BIT_PRIORITY) { |
164 b *= 2; | 164 b *= 2; |
165 g *= 2; | 165 g *= 2; |
166 r *= 2; | 166 r *= 2; |
167 } | 167 } |
168 if (gen_color & FBUF_SHADOW) { | |
169 b /= 2; | |
170 g /= 2; | |
171 r /= 2; | |
172 } else if(gen_color & FBUF_HILIGHT) { | |
173 b = b ? b : 64; | |
174 g = g ? g : 64; | |
175 r = r ? r : 64; | |
176 } | |
168 color = SDL_MapRGB(screen->format, r, g, b); | 177 color = SDL_MapRGB(screen->format, r, g, b); |
169 } | 178 } |
170 for (int j = 0; j < repeat_x; j++) { | 179 for (int j = 0; j < repeat_x; j++) { |
171 *(line++) = color; | 180 *(line++) = color; |
172 } | 181 } |