Graphics mode scrolling fixes.
authorhpa <hpa>
Mon, 9 Apr 2001 06:32:20 +0000 (06:32 +0000)
committerhpa <hpa>
Mon, 9 Apr 2001 06:32:20 +0000 (06:32 +0000)
ldlinux.asm

index f822d64..a37a9a1 100644 (file)
@@ -3009,7 +3009,7 @@ loadfont:
 .graphics:
                ; CX = 0 on entry
                mov cl,bh                       ; CX = bytes/character
-               mov ax,640
+               mov ax,480
                div cl                          ; Compute char rows per screen
                mov dl,al
                dec al
@@ -4048,11 +4048,11 @@ vgasetmode:
                mov [TextPage], byte 0  ; Always page 0
 
                mov cx,[VGAFontSize]
-               mov ax,640
+               mov ax,480
                div cl
+               mov dl,al
                dec al                  ; VidRows is stored -1
                mov [VidRows],al
-               mov dl,al
                mov bp,vgafontbuf
                xor bx,bx
                mov ax,1121h            ; Set graphics font