vesa: fix missing display_mode for UEFI.

* Broke use of non-standard modes in hrev51207. Code changed
  when merging framebuffer driver back into vesa driver...

Change-Id: I688ae627de23f37ffc8614d8f189593f8833ae3e
This commit is contained in:
Jessica Hamilton 2018-07-20 17:01:03 +12:00
parent 83aa7d63a5
commit 2ff22d6734

View File

@ -115,11 +115,12 @@ create_mode_list(void)
if (initialModes != NULL) {
initialModesCount = 1;
compute_display_timing(initialModes[0].virtual_width,
initialModes[0].virtual_height, 60, false,
&initialModes[0].timing);
fill_display_mode(initialModes[0].virtual_width,
initialModes[0].virtual_height, &initialModes[0]);
display_mode &mode = gInfo->shared_info->current_mode;
compute_display_timing(mode.virtual_width, mode.virtual_height,
60, false, &initialModes[0].timing);
fill_display_mode(mode.virtual_width, mode.virtual_height,
&initialModes[0]);
}
}