* 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:
Axel Dörfler 2011-07-19 18:16:58 +00:00
parent c80809a3ab
commit d3d53515a9
3 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2007-2009, Axel Dörfler, axeld@pinc-software.de.
* Copyright 2007-2011, Axel Dörfler, axeld@pinc-software.de.
* Distributed under the terms of the MIT License.
*/
#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,
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
}

View File

@ -399,7 +399,7 @@ ModeList::_AddBaseMode(uint16 width, uint16 height, uint32 refresh)
!= B_OK)
return;
fill_display_mode(&mode);
fill_display_mode(width, height, &mode);
_AddMode(mode);
}
@ -518,11 +518,11 @@ create_display_modes(const char* name, edid1_info* edid,
void
fill_display_mode(display_mode* mode)
fill_display_mode(uint32 width, uint32 height, display_mode* mode)
{
mode->space = B_CMAP8;
mode->virtual_width = mode->timing.h_display;
mode->virtual_height = mode->timing.v_display;
mode->virtual_width = width;
mode->virtual_height = height;
mode->h_display_start = 0;
mode->v_display_start = 0;
mode->flags = MODE_FLAGS;

View File

@ -90,7 +90,8 @@ create_mode_list(void)
for (uint32 i = gInfo->shared_info->vesa_mode_count; i-- > 0;) {
compute_display_timing(vesaModes[i].width, vesaModes[i].height,
60, false, &initialModes[i].timing);
fill_display_mode(&initialModes[i]);
fill_display_mode(vesaModes[i].width, vesaModes[i].height,
&initialModes[i]);
}
}
}