]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/pc/vgacyber938x.c
pc, pc64: clear debug watchpoint registers on exec and exit
[plan9front.git] / sys / src / 9 / pc / vgacyber938x.c
index ec6acf596c6aa470e8110aa882c9ae75fdbc7f75..c95d4e996b89458e420bd3621171bb8a9b951cba 100644 (file)
@@ -169,7 +169,7 @@ cyber938xcurenable(VGAscr* scr)
        /*
         * Find a place for the cursor data in display memory.
         */
-       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, 0x44, storage & 0xFF);
        vgaxo(Crtx, 0x45, (storage>>8) & 0xFF);
        storage *= 1024;