* Imported Andy Ritger's GTF code in compute_display_timing.cpp, and mangled it
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
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2011, Axel Dörfler, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _COMPUTE_DISPLAY_TIMING_H
|
||||
#define _COMPUTE_DISPLAY_TIMING_H
|
||||
|
||||
|
||||
#include <Accelerant.h>
|
||||
#include <GraphicsDefs.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
status_t compute_display_timing(uint32 width, uint32 height, float refresh,
|
||||
bool interlaced, display_timing* timing);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _COMPUTE_DISPLAY_TIMING_H */
|
||||
@@ -23,6 +23,8 @@ 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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user