summaryrefslogtreecommitdiff
path: root/font.inc
diff options
context:
space:
mode:
authorhpa <hpa>2004-02-03 06:16:03 +0000
committerhpa <hpa>2004-02-03 06:16:03 +0000
commit95d99866a4d6fb35eb47e694cac1697b8e521f0b (patch)
treeb56087528df1d17e556ef64e5f4777c1982f9fde /font.inc
parent5bb3f6793a4ea4ca9d209d88e4777974ec1ce70f (diff)
downloadsyslinux-95d99866a4d6fb35eb47e694cac1697b8e521f0b.tar.gz
Actually handle mode adjustmentssyslinux-2.09-pre4
Diffstat (limited to 'font.inc')
-rw-r--r--font.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/font.inc b/font.inc
index 9454d66e..41f28aa8 100644
--- a/font.inc
+++ b/font.inc
@@ -101,6 +101,7 @@ lf_ret equ use_font.lf_ret
; This is a subroutine in case we're loading a custom font.
;
adjust_screen:
+ pusha
mov al,[BIOS_vidrows]
and al,al
jnz vidrows_ok
@@ -111,5 +112,6 @@ vidrows_ok: mov [VidRows],al
int 10h ; Read video state
dec ah ; Store count-1 (same as rows)
mov [VidCols],ah
+ popa
ret