summaryrefslogtreecommitdiff
path: root/src/i830_modes.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-11-16 21:09:23 -0800
committerKeith Packard <keithp@neko.keithp.com>2006-11-16 21:09:23 -0800
commitc4508c1cadf323e9ef1d0e69dd77d5e841a6a978 (patch)
tree61e788425ab287988a5eea19c124aaa6cdaf618a /src/i830_modes.c
parent45a27f80e1c783627f570c309e7a853dcc9af0c1 (diff)
RandR-based initial output configuration.
Using pre-init computed RandR information, make reasonable default choices for the output configuration at startup time. Either some preferred size or a size which yields 96dpi is chosen, from which other monitors are set to a similar size. The largest size sets the screen size. This needs to be extended to respect config file settings, but those have not been defined yet.
Diffstat (limited to 'src/i830_modes.c')
-rw-r--r--src/i830_modes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_modes.c b/src/i830_modes.c
index 77db66cf..7fdd40ed 100644
--- a/src/i830_modes.c
+++ b/src/i830_modes.c
@@ -490,7 +490,7 @@ i830_reprobe_output_modes(ScrnInfoPtr pScrn)
*
* This should be obsoleted by RandR 1.2 hopefully.
*/
-static void
+void
i830_set_xf86_modes_from_outputs(ScrnInfoPtr pScrn)
{
I830Ptr pI830 = I830PTR(pScrn);
@@ -557,7 +557,7 @@ i830_set_xf86_modes_from_outputs(ScrnInfoPtr pScrn)
* Takes the output mode lists and decides the default root window size
* and framebuffer pitch.
*/
-static void
+void
i830_set_default_screen_size(ScrnInfoPtr pScrn)
{
I830Ptr pI830 = I830PTR(pScrn);