Revision eccabc6e hw/vga.c

b/hw/vga.c
1138 1138
    /* total width & height */
1139 1139
    cheight = (s->cr[9] & 0x1f) + 1;
1140 1140
    cw = 8;
1141
    if (s->sr[1] & 0x01)
1141
    if (!(s->sr[1] & 0x01))
1142 1142
        cw = 9;
1143 1143
    if (s->sr[1] & 0x08)
1144 1144
        cw = 16; /* NOTE: no 18 pixel wide */
......
1154 1154
        height = (height + 1) / cheight;
1155 1155
    }
1156 1156
    if (width != s->last_width || height != s->last_height ||
1157
        cw != s->last_cw || cw != s->last_cw) {
1157
        cw != s->last_cw || cheight != s->last_ch) {
1158 1158
        dpy_resize(s->ds, width * cw, height * cheight);
1159 1159
        s->last_width = width;
1160 1160
        s->last_height = height;

Also available in: Unified diff