On 09/09/12 16:00, Hiroshi Miura wrote:
Generate EDID according to preferred resolution from VBE_DISPI interface.
+void bochs_init_preferred_resolution(u16 max_xres, u16 max_yres) {
- if (max_xres >= 1920 && max_yres >= 1200){
max_xres = 1920; max_yres = 1200;
- } else if (max_xres >= 1600 && max_yres >= 1200){
max_xres = 1600; max_yres = 1200;
- } else if (max_xres >= 1280 && max_yres >= 1024){
max_xres = 1280; max_yres = 1024;
- } else {
max_xres = 1152; max_yres = 864;
- }
- SET_VGA(prefered_xres,max_xres);
- SET_VGA(prefered_yres,max_yres);
+}
u16 max_xres = dispi_read(VBE_DISPI_INDEX_XRES);
- u16 max_yres = dispi_read(VBE_DISPI_INDEX_YRES);
- bochs_init_preferred_resolution(max_xres, max_yres);
So how this is supposed to work? qemu gives you fixed max_xres and max_yres values, you'll never see anything below 1600x1200 ...
cheers, Gerd