diff --git a/src/add-ons/accelerants/radeon_hd/mode.cpp b/src/add-ons/accelerants/radeon_hd/mode.cpp
index 815d52f..e09b6e5 100644
a
|
b
|
status_t
|
44 | 44 | create_mode_list(void) |
45 | 45 | { |
46 | 46 | // TODO: multi-monitor? for now we use VESA and not gDisplay edid |
| 47 | uint8 crtcID = 0; |
47 | 48 | |
48 | 49 | const color_space kRadeonHDSpaces[] = {B_RGB32_LITTLE, B_RGB24_LITTLE, |
49 | 50 | B_RGB16_LITTLE, B_RGB15_LITTLE, B_CMAP8}; |
50 | 51 | |
51 | 52 | gInfo->mode_list_area = create_display_modes("radeon HD modes", |
52 | | gInfo->shared_info->has_edid ? &gInfo->shared_info->edid_info : NULL, |
53 | | NULL, 0, kRadeonHDSpaces, |
| 53 | &gDisplay[crtcID]->edidData, NULL, 0, kRadeonHDSpaces, |
54 | 54 | sizeof(kRadeonHDSpaces) / sizeof(kRadeonHDSpaces[0]), |
55 | 55 | is_mode_supported, &gInfo->mode_list, &gInfo->shared_info->mode_count); |
56 | 56 | if (gInfo->mode_list_area < B_OK) |
… |
… |
status_t
|
111 | 111 | radeon_get_edid_info(void* info, size_t size, uint32* edid_version) |
112 | 112 | { |
113 | 113 | // TODO: multi-monitor? for now we use VESA edid |
| 114 | uint8 crtcID = 0; |
114 | 115 | |
115 | 116 | TRACE("%s\n", __func__); |
116 | 117 | if (!gInfo->shared_info->has_edid) |
… |
… |
radeon_get_edid_info(void* info, size_t size, uint32* edid_version)
|
118 | 119 | if (size < sizeof(struct edid1_info)) |
119 | 120 | return B_BUFFER_OVERFLOW; |
120 | 121 | |
121 | | memcpy(info, &gInfo->shared_info->edid_info, sizeof(struct edid1_info)); |
| 122 | //memcpy(info, &gInfo->shared_info->edid_info, sizeof(struct edid1_info)); |
122 | 123 | // VESA |
123 | | //memcpy(info, &gDisplay[0]->edidData, sizeof(struct edid1_info)); |
| 124 | memcpy(info, &gDisplay[crtcID]->edidData, sizeof(struct edid1_info)); |
124 | 125 | // Display 0 |
125 | 126 | |
126 | 127 | *edid_version = EDID_VERSION_1; |