]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/pc/vgas3.c
kernel: cleanup makefile for $CONF.$O target
[plan9front.git] / sys / src / 9 / pc / vgas3.c
index ed203af6533c25a25e45de956ec2d89f29166100..a948b315449031339b23b7e5b472f73055a609c9 100644 (file)
@@ -307,7 +307,7 @@ s3enable(VGAscr* scr)
         * Find a place for the cursor data in display memory.
         * Must be on a 1024-byte boundary.
         */
-       storage = (scr->gscreen->width*BY2WD*scr->gscreen->r.max.y+1023)/1024;
+       storage = (scr->gscreen->width*sizeof(ulong)*scr->gscreen->r.max.y+1023)/1024;
        vgaxo(Crtx, 0x4C, storage>>8);
        vgaxo(Crtx, 0x4D, storage & 0xFF);
        storage *= 1024;
@@ -523,7 +523,6 @@ s3drawinit(VGAscr *scr)
         * above.
         */
        scr->blank = s3blank;
-       /* hwblank = 1;         not known to work well */
 
        switch(id){
        case VIRGE: