projects
/
eradicate
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0e19f91
)
fixed
author
John Tsiombikas
<nuclear@member.fsf.org>
Tue, 3 Mar 2020 18:23:20 +0000
(20:23 +0200)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Tue, 3 Mar 2020 18:23:20 +0000
(20:23 +0200)
src/dos/gfx.c
patch
|
blob
|
history
diff --git
a/src/dos/gfx.c
b/src/dos/gfx.c
index
5a8a63b
..
c9a153d
100644
(file)
--- a/
src/dos/gfx.c
+++ b/
src/dos/gfx.c
@@
-174,7
+174,7
@@
void *set_video_mode(int idx, int nbuf)
if(nbuf < 1) nbuf = 1;
if(nbuf > 2) nbuf = 2;
pgcount = nbuf > vm->max_pages ? vm->max_pages : nbuf;
- pgsize = vm->xsz * vm->ysz * vm->pitch;
+ pgsize = vm->ysz * vm->pitch;
fbsize = pgcount * pgsize;
printf("pgcount: %d, pgsize: %d, fbsize: %d\n", pgcount, pgsize, fbsize);
@@
-189,7
+189,7
@@
void *set_video_mode(int idx, int nbuf)
set_text_mode();
return 0;
}
- //memset(vpgaddr[0], 0xaa, pgsize);
+ memset(vpgaddr[0], 0xaa, pgsize);
if(pgcount > 1) {
vpgaddr[1] = (char*)vpgaddr[0] + pgsize;