projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disabled dep-files when building on dos, because it goes into an infinite loop
[dosdemo]
/
src
/
tunnel.c
diff --git
a/src/tunnel.c
b/src/tunnel.c
index
d10c691
..
9071b74
100644
(file)
--- 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;
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) {
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);
}
}
}
}
@@
-220,7
+220,7
@@
static void draw_tunnel_range(unsigned short *pix, int xoffs, int yoffs, int sta
unsigned int *tmap = tunnel_map + (starty + yoffs) * vxsz + xoffs;
unsigned char *fog = tunnel_fog + (starty + yoffs) * vxsz + xoffs;
unsigned int *tmap = tunnel_map + (starty + yoffs) * vxsz + xoffs;
unsigned char *fog = tunnel_fog + (starty + yoffs) * vxsz + xoffs;
- long toffs = tm / 4;
+ long toffs = tm / 8;
unsigned int *pixels = (unsigned int*)pix + starty * (fb_width >> 1);
for(i=0; i<num_lines; i++) {
unsigned int *pixels = (unsigned int*)pix + starty * (fb_width >> 1);
for(i=0; i<num_lines; i++) {