projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clipping bugs...
[dosdemo]
/
src
/
sdl
/
main.c
diff --git
a/src/sdl/main.c
b/src/sdl/main.c
index
05744e8
..
09645aa
100644
(file)
--- a/
src/sdl/main.c
+++ b/
src/sdl/main.c
@@
-30,7
+30,8
@@
int main(int argc, char **argv)
xsz = fb_width * fbscale;
ysz = fb_height * fbscale;
xsz = fb_width * fbscale;
ysz = fb_height * fbscale;
- if(!(fb_pixels = malloc(fb_width * fb_height * fb_bpp / CHAR_BIT))) {
+ /* allocate 1 extra row as a guard band, until we fucking fix the rasterizer */
+ if(!(fb_pixels = malloc(fb_width * (fb_height + 1) * fb_bpp / CHAR_BIT))) {
fprintf(stderr, "failed to allocate virtual framebuffer\n");
return 1;
}
fprintf(stderr, "failed to allocate virtual framebuffer\n");
return 1;
}