From: thefiddler Date: Fri, 18 Jul 2014 08:04:57 +0000 (+0200) Subject: [KMS] Correctly restore crtc on exit. X-Git-Tag: 2.0-0~112^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51c05ea1a5ba2e9e315f09db925d6cf83babbd48;p=platform%2Fcore%2Fcsapi%2Fopentk.git [KMS] Correctly restore crtc on exit. --- diff --git a/Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs b/Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs index f2d5518..d695954 100644 --- a/Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs +++ b/Source/OpenTK/Platform/Linux/LinuxGraphicsContext.cs @@ -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);