Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd2fe3b4 authored by synergy dev's avatar synergy dev Committed by Synergy Dev
Browse files

libpixelflinger: do not use anonymous structs

Avoiding the use of gnu extensions improves code portability

Change-Id: Ie9e94e3ce030f52a22997f8a48de1e6c1c549894
parent 66ed50af
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1877,7 +1877,7 @@ void scanline_perspective(context_t* c)
            struct {
                int32_t s, sq;
                int32_t t, tq;
            };
            } sqtq;
            struct {
                int32_t v, q;
            } st[2];
@@ -1916,10 +1916,10 @@ void scanline_perspective(context_t* c)
        int32_t t =   tmu.shade.it0 +
                     (tmu.shade.idtdy * ys) + (tmu.shade.idtdx * xs) +
                     ((tmu.shade.idtdx + tmu.shade.idtdy)>>1);
        tc[i].s  = s;
        tc[i].t  = t;
        tc[i].sq = gglMulx(s, q0, iwscale);
        tc[i].tq = gglMulx(t, q0, iwscale);
        tc[i].sqtq.s  = s;
        tc[i].sqtq.t  = t;
        tc[i].sqtq.sq = gglMulx(s, q0, iwscale);
        tc[i].sqtq.tq = gglMulx(t, q0, iwscale);
    }

    int32_t span = 0;