Started a create_display_modes() function that should be used by accelerants

to create their mode list. Once it's done, it should cover all possible cases,
and allow the base mode list to reside in the app_server (under Haiku, at least),
so that all drivers will benefit from an updated list.
Right now, it might already work to a degree, but it's not yet tested.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22517 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-10-12 15:59:50 +00:00
parent 13a81299f1
commit 7bdf92f3f7
3 changed files with 431 additions and 0 deletions
@@ -0,0 +1,29 @@
/*
* Copyright 2007, Axel Dörfler, [email protected]. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _CREATE_DISPLAY_MODES_H
#define _CREATE_DISPLAY_MODES_H
#include <edid.h>
#include <Accelerant.h>
typedef bool (*check_display_mode_hook)(display_mode *mode);
#ifdef __cplusplus
extern "C" {
#endif
area_id create_display_modes(const char *name, edid1_info *edid,
const display_mode *initialModes, uint32 initialModeCount,
const color_space *spaces, uint32 spacesCount,
check_display_mode_hook hook, display_mode **_modes, uint32 *_count);
#ifdef __cplusplus
}
#endif
#endif /* _CREATE_DISPLAY_MODES_H */