- uint16_t *pixels, *pixel;
- int row_inc = s->pitch/sizeof(uint16_t);
-
- pixels = (uint16_t *) s->pixels;
-
- for(i = 0; i<MAXENGINEDOTS; i++) {
- if(!edot[i].active) continue;
- pixel = pixels + row_inc*(int)(edot[i].y) + (int)(edot[i].x);
- *pixel = heatcolor[min(3*W-1, (int)(edot[i].mass)*6)];
- }
-}