* Only add the VESA modes if there is no EDID available.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42427 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -76,9 +76,11 @@ create_mode_list(void)
|
|||||||
const color_space kVesaSpaces[] = {B_RGB32_LITTLE, B_RGB24_LITTLE,
|
const color_space kVesaSpaces[] = {B_RGB32_LITTLE, B_RGB24_LITTLE,
|
||||||
B_RGB16_LITTLE, B_RGB15_LITTLE, B_CMAP8};
|
B_RGB16_LITTLE, B_RGB15_LITTLE, B_CMAP8};
|
||||||
|
|
||||||
// Create the initial list from the support mode list
|
// Create the initial list from the support mode list - but only if we don't
|
||||||
// TODO: filter by monitor timing constraints!
|
// have EDID info available, as that should be good enough.
|
||||||
display_mode* initialModes = (display_mode*)malloc(
|
display_mode* initialModes = NULL;
|
||||||
|
if (!gInfo->shared_info->has_edid) {
|
||||||
|
initialModes = (display_mode*)malloc(
|
||||||
sizeof(display_mode) * gInfo->shared_info->vesa_mode_count);
|
sizeof(display_mode) * gInfo->shared_info->vesa_mode_count);
|
||||||
if (initialModes != NULL) {
|
if (initialModes != NULL) {
|
||||||
vesa_mode* vesaModes = gInfo->vesa_modes;
|
vesa_mode* vesaModes = gInfo->vesa_modes;
|
||||||
@@ -89,6 +91,7 @@ create_mode_list(void)
|
|||||||
fill_display_mode(&initialModes[i]);
|
fill_display_mode(&initialModes[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
gInfo->mode_list_area = create_display_modes("vesa modes",
|
gInfo->mode_list_area = create_display_modes("vesa modes",
|
||||||
gInfo->shared_info->has_edid ? &gInfo->shared_info->edid_info : NULL,
|
gInfo->shared_info->has_edid ? &gInfo->shared_info->edid_info : NULL,
|
||||||
|
|||||||
Reference in New Issue
Block a user