aboutsummaryrefslogtreecommitdiff
path: root/hw/vga.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-07 20:31:38 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-07 20:31:38 +0000
commiteccabc6ee0da82a3cb6037537c145fae08c23041 (patch)
tree32e0fc8ac5f0e949ac8d167700460705a70e83b0 /hw/vga.c
parentbb058620c3b6bbddb99c9afff956dded7139897b (diff)
downloadqemu-eccabc6ee0da82a3cb6037537c145fae08c23041.zip
qemu-eccabc6ee0da82a3cb6037537c145fae08c23041.tar.gz
qemu-eccabc6ee0da82a3cb6037537c145fae08c23041.tar.bz2
vga 9 pixel wide text char fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@713 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/vga.c')
-rw-r--r--hw/vga.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/vga.c b/hw/vga.c
index ce1754f..f05dd1c 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1138,7 +1138,7 @@ static void vga_draw_text(VGAState *s, int full_update)
/* total width & height */
cheight = (s->cr[9] & 0x1f) + 1;
cw = 8;
- if (s->sr[1] & 0x01)
+ if (!(s->sr[1] & 0x01))
cw = 9;
if (s->sr[1] & 0x08)
cw = 16; /* NOTE: no 18 pixel wide */
@@ -1154,7 +1154,7 @@ static void vga_draw_text(VGAState *s, int full_update)
height = (height + 1) / cheight;
}
if (width != s->last_width || height != s->last_height ||
- cw != s->last_cw || cw != s->last_cw) {
+ cw != s->last_cw || cheight != s->last_ch) {
dpy_resize(s->ds, width * cw, height * cheight);
s->last_width = width;
s->last_height = height;