summaryrefslogtreecommitdiff
path: root/linux-core/drm_modes.c
diff options
context:
space:
mode:
authorDavid Airlie <airlied@asimov.stargames.com.au>2007-04-11 09:56:09 +1000
committerDavid Airlie <airlied@asimov.stargames.com.au>2007-04-11 09:56:09 +1000
commitb62ffb8e91dafbe46b4daa5be13a867b149b0170 (patch)
tree23f8c1abf179a62e9b9646f4baefdd42dda8de94 /linux-core/drm_modes.c
parent50672adb3142abca743535a8e60c360ef47b2a08 (diff)
fixup calculation to make sdvo work
Diffstat (limited to 'linux-core/drm_modes.c')
-rw-r--r--linux-core/drm_modes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_modes.c b/linux-core/drm_modes.c
index 0f2a612a..14c7acd5 100644
--- a/linux-core/drm_modes.c
+++ b/linux-core/drm_modes.c
@@ -129,9 +129,9 @@ void drm_mode_set_crtcinfo(struct drm_display_mode *p, int adjust_flags)
}
p->crtc_vblank_start = min(p->crtc_vsync_start, p->crtc_vdisplay);
- p->crtc_vblank_end = min(p->crtc_vsync_end, p->crtc_vtotal);
+ p->crtc_vblank_end = max(p->crtc_vsync_end, p->crtc_vtotal);
p->crtc_hblank_start = min(p->crtc_hsync_start, p->crtc_hdisplay);
- p->crtc_hblank_end = min(p->crtc_hsync_end, p->crtc_htotal);
+ p->crtc_hblank_end = max(p->crtc_hsync_end, p->crtc_htotal);
p->crtc_hadjusted = false;
p->crtc_vadjusted = false;