summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/examples/evas/evas-3d-primitives.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/examples/evas/evas-3d-primitives.c b/src/examples/evas/evas-3d-primitives.c
index baee7a1a4a..f7370024b0 100644
--- a/src/examples/evas/evas-3d-primitives.c
+++ b/src/examples/evas/evas-3d-primitives.c
@@ -246,13 +246,13 @@ _generate_grid_indices(unsigned short *indices, int count)
246 for (j = 0; j < count; j++) 246 for (j = 0; j < count; j++)
247 for (i = 0; i < count; i++) 247 for (i = 0; i < count; i++)
248 { 248 {
249 *index++ = (unsigned short)(i + vccount * j); 249 *index++ = (i * vccount) + j;
250 *index++ = i + vccount * (j + 1); 250 *index++ = (i * vccount) + j + 1;
251 *index++ = i + 1 + vccount * (j + 1); 251 *index++ = ((i + 1) * vccount) + j;
252 252
253 *index++ = i + vccount * j; 253 *index++ = ((i + 1) * vccount) + j;
254 *index++ = i + 1 + vccount * j; 254 *index++ = (i * vccount) + j + 1;
255 *index++ = i + vccount * (j + 1) + 1; 255 *index++ = ((i + 1) * vccount) + j + 1;
256 } 256 }
257} 257}
258 258