X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=dust.c;h=0e4daa263b935c8a3e49ad08551dceb1dd308999;hp=4eeeb8b034a23f1c4ef8e2c3998801998528eb7e;hb=HEAD;hpb=fe549d406b589b1c3db83aeea28c911292a5968e diff --git a/dust.c b/dust.c index 4eeeb8b..0e4daa2 100644 --- a/dust.c +++ b/dust.c @@ -1,7 +1,7 @@ #include #include -#include "config.h" +#include "vorconfig.h" #include "globals.h" #include "dust.h" #include "float.h" @@ -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; } }