Reverted if guard.
This commit is contained in:
parent
aa9f16c74c
commit
214e6898df
|
@ -309,12 +309,8 @@ void ren_draw_rect(RenRect rect, RenColor color) {
|
||||||
int dr = surface->w - (x2 - x1);
|
int dr = surface->w - (x2 - x1);
|
||||||
|
|
||||||
if (color.a == 0xff) {
|
if (color.a == 0xff) {
|
||||||
#if defined(__arm__) || defined(__aarch64__)
|
SDL_Rect rect = { x1, y1, x2 - x1, y2 - y1 };
|
||||||
rect_draw_loop(color);
|
SDL_FillRect(surface, &rect, SDL_MapRGBA(surface->format, color.r, color.g, color.b, color.a));
|
||||||
#else
|
|
||||||
SDL_Rect rect = { x1, y1, x2 - x1, y2 - y1 };
|
|
||||||
SDL_FillRect(surface, &rect, SDL_MapRGBA(surface->format, color.r, color.g, color.b, color.a));
|
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
rect_draw_loop(blend_pixel(*d, color));
|
rect_draw_loop(blend_pixel(*d, color));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue