X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fscr%2Fplasma.c;h=5f02c44bfaa8cf367989804e1f135b7848375397;hp=5caf4f4ad75f4b1e5c62ab4f5d5cf9efe4e2ad73;hb=e8b26db00c934d141f16652cb8dcbeae23b17e48;hpb=ba648ddfc62fc6d3f47294aa8bfc10ea6ca3f479 diff --git a/src/scr/plasma.c b/src/scr/plasma.c index 5caf4f4..5f02c44 100644 --- a/src/scr/plasma.c +++ b/src/scr/plasma.c @@ -1,4 +1,4 @@ -// Just a test with a run of the mill plasma +/* Just a test with a run of the mill plasma */ #include #include @@ -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];