mirror of
https://review.haiku-os.org/haiku
synced 2025-01-30 18:24:53 +01:00
95009aeeb0
into a usable function - this has some coding style issues I did not care to fix. * _AddBaseMode() now computes the mode in case it is not present in the list yet. * This should help with bug #7787. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42420 a95241bf-73f2-0310-859d-f6bbb57e9c96
33 lines
716 B
C
33 lines
716 B
C
/*
|
|
* Copyright 2007-2009, Axel Dörfler, axeld@pinc-software.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _CREATE_DISPLAY_MODES_H
|
|
#define _CREATE_DISPLAY_MODES_H
|
|
|
|
|
|
#include <edid.h>
|
|
|
|
#include <Accelerant.h>
|
|
#include <GraphicsDefs.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);
|
|
|
|
void fill_display_mode(display_mode* mode);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _CREATE_DISPLAY_MODES_H */
|