diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-01-19 03:29:52 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-01-19 03:29:52 +0100 |
commit | ba787cc587803e3dfe400755c4fa2fa04701dd53 (patch) | |
tree | 83b48349c852ded3684a90205118470326580a1d /sys/src/9/pc/vganvidia.c | |
parent | 02a2eb6676d3dbdaea5e5339b32bfa4c9d321175 (diff) |
kernel: replace BY2WD in scanline width calculation to sizeof(ulong) like libmemdraw
Diffstat (limited to 'sys/src/9/pc/vganvidia.c')
-rw-r--r-- | sys/src/9/pc/vganvidia.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc/vganvidia.c b/sys/src/9/pc/vganvidia.c index d5563ecf1..6e5e9694e 100644 --- a/sys/src/9/pc/vganvidia.c +++ b/sys/src/9/pc/vganvidia.c @@ -346,7 +346,7 @@ nvresetgraphics(VGAscr *scr) if(scr->paddr == 0) return -1; - pitch = scr->gscreen->width*BY2WD; + pitch = scr->gscreen->width*sizeof(ulong); /* * DMA is at the end of the virtual window, |