kernel/vga: Fix a CRTC register setting which I botched back in 2008.
authorSascha Wildner <saw@online.de>
Tue, 8 Jul 2014 12:39:52 +0000 (14:39 +0200)
committerSascha Wildner <saw@online.de>
Tue, 8 Jul 2014 12:39:52 +0000 (14:39 +0200)
sys/dev/video/fb/vga.c

index fe0f8f8..4592ecb 100644 (file)
@@ -756,7 +756,7 @@ set_line_length(video_adapter_t *adp, int pixel)
     if (mp[10 + 0x17] & 0x40)                  /* CRTC mode control reg */
        count *= 2;                             /* byte mode */
     outb(CRTC, 0x13);
-    outb(CRTC, count);
+    outb(CRTC + 1, count);
     adp->va_line_width = bpl;
 
     return 0;