X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Ftunnel.c;h=9071b74ea4a1cba12010c6bcd4c86c88bfff6da3;hp=56d079370c9e640e31098ad3ff3f84d77cf7f396;hb=7deef4d5a20da09044bf7311c6ee274090cde5e6;hpb=b82bab85314bbc57d1c542d4d6687de0cd75c375 diff --git a/src/tunnel.c b/src/tunnel.c index 56d0793..9071b74 100644 --- a/src/tunnel.c +++ b/src/tunnel.c @@ -183,9 +183,9 @@ static void draw(void) int starty = i * num_lines; int resty = starty + draw_lines; int rest_lines = num_lines - draw_lines; - draw_tunnel_range(vmem_back, xoffs, yoffs, starty, draw_lines, time_msec); + draw_tunnel_range(fb_pixels, xoffs, yoffs, starty, draw_lines, time_msec); if(rest_lines) { - memset(vmem_back + resty * fb_width, 0, rest_lines * fb_width * 2); + memset(fb_pixels + resty * fb_width, 0, rest_lines * fb_width * 2); } }