2007-10-12 19:59:50 +04:00
|
|
|
/*
|
2011-07-19 22:16:58 +04:00
|
|
|
* Copyright 2007-2011, Axel Dörfler, axeld@pinc-software.de.
|
2007-10-12 19:59:50 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _CREATE_DISPLAY_MODES_H
|
|
|
|
#define _CREATE_DISPLAY_MODES_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <edid.h>
|
|
|
|
|
|
|
|
#include <Accelerant.h>
|
2007-10-14 16:31:51 +04:00
|
|
|
#include <GraphicsDefs.h>
|
2007-10-12 19:59:50 +04:00
|
|
|
|
|
|
|
|
2009-07-31 18:11:12 +04:00
|
|
|
typedef bool (*check_display_mode_hook)(display_mode* mode);
|
2007-10-12 19:59:50 +04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2009-07-31 18:11:12 +04:00
|
|
|
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);
|
2007-10-12 19:59:50 +04:00
|
|
|
|
2011-07-19 22:16:58 +04:00
|
|
|
void fill_display_mode(uint32 width, uint32 height, display_mode* mode);
|
2011-07-14 03:26:26 +04:00
|
|
|
|
2007-10-12 19:59:50 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _CREATE_DISPLAY_MODES_H */
|