[KMS] Correctly restore crtc on exit.
authorthefiddler <stapostol@gmail.com>
Fri, 18 Jul 2014 08:04:57 +0000 (10:04 +0200)
committerthefiddler <stapostol@gmail.com>
Fri, 18 Jul 2014 08:04:57 +0000 (10:04 +0200)
Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs

index f2d5518..d695954 100644 (file)
@@ -286,8 +286,8 @@ namespace OpenTK.Platform.Linux
                         Drm.ModeSetCrtc(fd,
                             wnd.DisplayDevice.pCrtc->crtc_id,
                             wnd.DisplayDevice.pCrtc->buffer_id,
-                            wnd.DisplayDevice.pCrtc->width,
-                            wnd.DisplayDevice.pCrtc->height,
+                            wnd.DisplayDevice.pCrtc->x,
+                            wnd.DisplayDevice.pCrtc->y,
                             &connector_id,
                             1,
                             &mode);