diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2009-09-09 22:13:40 -0300 |
---|---|---|
committer | Martin-Éric Racine <q-funk@iki.fi> | 2009-09-19 18:47:07 +0300 |
commit | 3af472f4453f8e92a9f303e64e2796836374d980 (patch) | |
tree | 69031ceaf81888f83c6c491f4ef71e316a8cbdf7 | |
parent | 6ff8735b25da03f432b755391000bbfe2253b60c (diff) |
LX: validate display modes
To avoid using virtual desktop by default we now validate the display
modes.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | src/lx_output.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lx_output.c b/src/lx_output.c index 72e5e2a..3eecc9e 100644 --- a/src/lx_output.c +++ b/src/lx_output.c @@ -163,6 +163,13 @@ lx_output_mode_valid(xf86OutputPtr output, DisplayModePtr pMode) return MODE_BAD; } + if (gfx_is_display_mode_supported(pMode->HDisplay, + pMode->VDisplay, + pScrni->bitsPerPixel, + GeodeGetRefreshRate(pMode)) < 0) { + return MODE_BAD; + } + return MODE_OK; } |