summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/r128_driver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/r128_driver.c b/src/r128_driver.c
index 6b756332..714df3da 100644
--- a/src/r128_driver.c
+++ b/src/r128_driver.c
@@ -1309,7 +1309,9 @@ static Bool R128GetDFPInfo(ScrnInfoPtr pScrn)
for(i=0; i<4; i++)
{
- if(ddc->det_mon[i].type == 0)
+ if((ddc->det_mon[i].type == 0) &&
+ (ddc->det_mon[i].section.d_timings.h_active > 0) &&
+ (ddc->det_mon[i].section.d_timings.v_active > 0))
{
info->PanelXRes =
ddc->det_mon[i].section.d_timings.h_active;