X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fscr%2Fplasma.c;h=5f02c44bfaa8cf367989804e1f135b7848375397;hp=afb9a67ce5564619debfdf1997644ce9aa34c76f;hb=e8b26db00c934d141f16652cb8dcbeae23b17e48;hpb=b0159ee29e4e616e4506d3cea5aee6ecc97aa93a diff --git a/src/scr/plasma.c b/src/scr/plasma.c index afb9a67..5f02c44 100644 --- a/src/scr/plasma.c +++ b/src/scr/plasma.c @@ -92,11 +92,11 @@ static void draw(void) unsigned int *vram32 = (unsigned int*)fb_pixels; unsigned int p0, p1; - for (y = 0; y < fb_height; y++) + for (y = 0; y < FB_HEIGHT; y++) { s1 = psin2[y + t2]; s2 = psin3[y + t1]; - for (x = 0; x < fb_width; x+=2) + for (x = 0; x < FB_WIDTH; x+=2) { c = psin1[x + t1] + s1 + psin3[x + y + t3] + psin1[psin2[x + t2] + s2 + t3]; p0 = plasmaPal[c];