* Add the width, and height to fill_display_mode(). This should help with #7751
this time. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42454 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2009, Axel Dörfler, [email protected].
|
* Copyright 2007-2011, Axel Dörfler, [email protected].
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _CREATE_DISPLAY_MODES_H
|
#ifndef _CREATE_DISPLAY_MODES_H
|
||||||
@@ -23,7 +23,7 @@ area_id create_display_modes(const char* name, edid1_info* edid,
|
|||||||
const color_space* spaces, uint32 spacesCount,
|
const color_space* spaces, uint32 spacesCount,
|
||||||
check_display_mode_hook hook, display_mode** _modes, uint32* _count);
|
check_display_mode_hook hook, display_mode** _modes, uint32* _count);
|
||||||
|
|
||||||
void fill_display_mode(display_mode* mode);
|
void fill_display_mode(uint32 width, uint32 height, display_mode* mode);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -399,7 +399,7 @@ ModeList::_AddBaseMode(uint16 width, uint16 height, uint32 refresh)
|
|||||||
!= B_OK)
|
!= B_OK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fill_display_mode(&mode);
|
fill_display_mode(width, height, &mode);
|
||||||
|
|
||||||
_AddMode(mode);
|
_AddMode(mode);
|
||||||
}
|
}
|
||||||
@@ -518,11 +518,11 @@ create_display_modes(const char* name, edid1_info* edid,
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
fill_display_mode(display_mode* mode)
|
fill_display_mode(uint32 width, uint32 height, display_mode* mode)
|
||||||
{
|
{
|
||||||
mode->space = B_CMAP8;
|
mode->space = B_CMAP8;
|
||||||
mode->virtual_width = mode->timing.h_display;
|
mode->virtual_width = width;
|
||||||
mode->virtual_height = mode->timing.v_display;
|
mode->virtual_height = height;
|
||||||
mode->h_display_start = 0;
|
mode->h_display_start = 0;
|
||||||
mode->v_display_start = 0;
|
mode->v_display_start = 0;
|
||||||
mode->flags = MODE_FLAGS;
|
mode->flags = MODE_FLAGS;
|
||||||
|
|||||||
@@ -90,7 +90,8 @@ create_mode_list(void)
|
|||||||
for (uint32 i = gInfo->shared_info->vesa_mode_count; i-- > 0;) {
|
for (uint32 i = gInfo->shared_info->vesa_mode_count; i-- > 0;) {
|
||||||
compute_display_timing(vesaModes[i].width, vesaModes[i].height,
|
compute_display_timing(vesaModes[i].width, vesaModes[i].height,
|
||||||
60, false, &initialModes[i].timing);
|
60, false, &initialModes[i].timing);
|
||||||
fill_display_mode(&initialModes[i]);
|
fill_display_mode(vesaModes[i].width, vesaModes[i].height,
|
||||||
|
&initialModes[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user