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:
@@ -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 */
|
||||
Reference in New Issue
Block a user