diff options
author | synergy dev <synergye@codefi.re> | 2013-11-06 16:30:06 -0800 |
---|---|---|
committer | Synergy Dev <synergye@codefi.re> | 2013-11-25 18:54:56 +0000 |
commit | cd2fe3b49bb76c63f01895b079fb2434d77a61a1 (patch) | |
tree | 3cec0b82768fa290dc7979afd1969429fe2f765e /libpixelflinger | |
parent | 66ed50af6870210ce013a5588a688434a5d48ee9 (diff) | |
download | system_core-cd2fe3b49bb76c63f01895b079fb2434d77a61a1.zip system_core-cd2fe3b49bb76c63f01895b079fb2434d77a61a1.tar.gz system_core-cd2fe3b49bb76c63f01895b079fb2434d77a61a1.tar.bz2 |
libpixelflinger: do not use anonymous structs
Avoiding the use of gnu extensions improves code portability
Change-Id: Ie9e94e3ce030f52a22997f8a48de1e6c1c549894
Diffstat (limited to 'libpixelflinger')
-rw-r--r-- | libpixelflinger/scanline.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libpixelflinger/scanline.cpp b/libpixelflinger/scanline.cpp index a5d28b2..9663a2b 100644 --- a/libpixelflinger/scanline.cpp +++ b/libpixelflinger/scanline.cpp @@ -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; |