Replace nice struct init syntax with elder-friendly

This commit is contained in:
John Lorentzson 2025-04-17 18:42:53 +02:00
parent abdfcf2e00
commit b0f8744c4a

View file

@ -170,7 +170,11 @@ static void computeCheapRects(RenderBackend_Surface* surface) {
for(unsigned int rx = 0; rx < rcolumns; rx++) {
unsigned int px = rx * 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) {
unsigned int rectOrigin = (px << 16) | py;
surface->cheapRectangles->insert(rectOrigin);