X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=dust.c;h=ab583953ae0bd928ded3f40b5e153f6c9c626ea7;hp=4eeeb8b034a23f1c4ef8e2c3998801998528eb7e;hb=ca648507d88cc3e3f0ee264e1bb94f3e8c31192e;hpb=fe549d406b589b1c3db83aeea28c911292a5968e diff --git a/dust.c b/dust.c index 4eeeb8b..ab58395 100644 --- a/dust.c +++ b/dust.c @@ -28,11 +28,11 @@ init_dust(void) } void -move_dust(float ticks) +move_dust(void) { int i; - float xscroll = screendx * ticks; - float yscroll = screendy * ticks; + float xscroll = screendx * t_frame; + float yscroll = screendy * t_frame; for(i=0; ipixels; + uint16_t *pixels = surf_screen->pixels; for(i=0; ipitch/2*(int)motes[i].y + (int)motes[i].x] = motes[i].color; + pixels[surf_screen->pitch/2*(int)motes[i].y + (int)motes[i].x] = motes[i].color; } }