Revision 799e709b hw/cirrus_vga.c
b/hw/cirrus_vga.c | ||
---|---|---|
1392 | 1392 |
break; |
1393 | 1393 |
} |
1394 | 1394 |
|
1395 |
vga_update_resolution((VGAState *)s); |
|
1396 |
|
|
1397 | 1395 |
return CIRRUS_HOOK_HANDLED; |
1398 | 1396 |
} |
1399 | 1397 |
|
... | ... | |
1421 | 1419 |
#endif |
1422 | 1420 |
} |
1423 | 1421 |
s->cirrus_hidden_dac_lockindex = 0; |
1424 |
vga_update_resolution((VGAState *)s); |
|
1425 | 1422 |
} |
1426 | 1423 |
|
1427 | 1424 |
/*************************************** |
... | ... | |
1708 | 1705 |
break; |
1709 | 1706 |
} |
1710 | 1707 |
|
1711 |
vga_update_resolution((VGAState *)s); |
|
1712 |
|
|
1713 | 1708 |
return CIRRUS_HOOK_HANDLED; |
1714 | 1709 |
} |
1715 | 1710 |
|
... | ... | |
2835 | 2830 |
if (s->ar_flip_flop == 0) { |
2836 | 2831 |
val &= 0x3f; |
2837 | 2832 |
s->ar_index = val; |
2838 |
vga_update_resolution((VGAState *)s); |
|
2839 | 2833 |
} else { |
2840 | 2834 |
index = s->ar_index & 0x1f; |
2841 | 2835 |
switch (index) { |
... | ... | |
2929 | 2923 |
/* can always write bit 4 of CR7 */ |
2930 | 2924 |
if (s->cr_index == 7) |
2931 | 2925 |
s->cr[7] = (s->cr[7] & ~0x10) | (val & 0x10); |
2932 |
vga_update_resolution((VGAState *)s); |
|
2933 | 2926 |
return; |
2934 | 2927 |
} |
2935 | 2928 |
switch (s->cr_index) { |
... | ... | |
2958 | 2951 |
s->update_retrace_info((VGAState *) s); |
2959 | 2952 |
break; |
2960 | 2953 |
} |
2961 |
vga_update_resolution((VGAState *)s); |
|
2962 | 2954 |
break; |
2963 | 2955 |
case 0x3ba: |
2964 | 2956 |
case 0x3da: |
... | ... | |
3165 | 3157 |
|
3166 | 3158 |
cirrus_update_memory_access(s); |
3167 | 3159 |
/* force refresh */ |
3168 |
vga_update_resolution((VGAState *)s); |
|
3169 |
s->want_full_update = 1; |
|
3160 |
s->graphic_mode = -1; |
|
3170 | 3161 |
cirrus_update_bank_ptr(s, 0); |
3171 | 3162 |
cirrus_update_bank_ptr(s, 1); |
3172 | 3163 |
return 0; |
Also available in: Unified diff