From 3bde1f121acb9ef50268868839dc01114197a124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 31 Jul 2009 14:07:19 +0000 Subject: [PATCH] * If the VESA accelerant has EDID information, it will now also pass it to create_display_modes(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32020 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/vesa/mode.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/add-ons/accelerants/vesa/mode.cpp b/src/add-ons/accelerants/vesa/mode.cpp index 7fd534f3c9..4b71122dcc 100644 --- a/src/add-ons/accelerants/vesa/mode.cpp +++ b/src/add-ons/accelerants/vesa/mode.cpp @@ -74,8 +74,9 @@ create_mode_list(void) const color_space kVesaSpaces[] = {B_RGB32_LITTLE, B_RGB24_LITTLE, B_RGB16_LITTLE, B_RGB15_LITTLE, B_CMAP8}; - gInfo->mode_list_area = create_display_modes("vesa modes", NULL, NULL, 0, - kVesaSpaces, sizeof(kVesaSpaces) / sizeof(kVesaSpaces[0]), + gInfo->mode_list_area = create_display_modes("vesa modes", + gInfo->shared_info->has_edid ? &gInfo->shared_info->edid_info : NULL, + NULL, 0, kVesaSpaces, sizeof(kVesaSpaces) / sizeof(kVesaSpaces[0]), is_mode_supported, &gInfo->mode_list, &gInfo->shared_info->mode_count); if (gInfo->mode_list_area < B_OK) return gInfo->mode_list_area;