summaryrefslogtreecommitdiff
path: root/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c')
-rw-r--r--src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c b/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c
index 0949ceb..3192f0f 100644
--- a/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c
+++ b/src/libXNVCtrlAttributes/NvCtrlAttributesVidMode.c
@@ -49,8 +49,8 @@ NvCtrlInitVidModeAttributes(NvCtrlAttributePrivateHandle *h)
ret = XF86VidModeQueryVersion(h->dpy, &(vm->major_version), &(vm->minor_version));
if (!ret) goto failed;
- if (vm->major_version < VM_MINMAJOR ||
- (vm->major_version == VM_MINMAJOR && vm->minor_version < VM_MINMINOR)) {
+ if (NV_VERSION2(vm->major_version, vm->minor_version) <
+ NV_VERSION2(VM_MINMAJOR, VM_MINMINOR)) {
nv_warning_msg("The version of the XF86VidMode extension present "
"on this display (%d.%d) does not support updating "
"gamma ramps. If you'd like to be able to adjust "