Replace nice struct init syntax with elder-friendly
This commit is contained in:
parent
abdfcf2e00
commit
b0f8744c4a
1 changed files with 5 additions and 1 deletions
|
@ -170,7 +170,11 @@ static void computeCheapRects(RenderBackend_Surface* surface) {
|
||||||
for(unsigned int rx = 0; rx < rcolumns; rx++) {
|
for(unsigned int rx = 0; rx < rcolumns; rx++) {
|
||||||
unsigned int px = rx * 16;
|
unsigned int px = rx * 16;
|
||||||
unsigned int py = ry * 16;
|
unsigned int py = ry * 16;
|
||||||
RenderBackend_Rect rect = { .left = px, .top = py, .right = px + 16, .bottom = py + 16 };
|
RenderBackend_Rect rect;
|
||||||
|
rect.left = px;
|
||||||
|
rect.top = py;
|
||||||
|
rect.right = px + 16;
|
||||||
|
rect.bottom = py + 16;
|
||||||
if(rectUsesColorKey(surface, &rect) == false) {
|
if(rectUsesColorKey(surface, &rect) == false) {
|
||||||
unsigned int rectOrigin = (px << 16) | py;
|
unsigned int rectOrigin = (px << 16) | py;
|
||||||
surface->cheapRectangles->insert(rectOrigin);
|
surface->cheapRectangles->insert(rectOrigin);
|
||||||
|
|
Loading…
Add table
Reference in a new issue