From ccaaacac7ccb4a005fd30bed87b71e13ca2a2d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 20 Feb 2023 19:49:39 +0100 Subject: [PATCH] do not round height to 8. --- pkg/xorg/xorg.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/xorg/xorg.go b/pkg/xorg/xorg.go index 11629134..703aa49d 100644 --- a/pkg/xorg/xorg.go +++ b/pkg/xorg/xorg.go @@ -189,9 +189,8 @@ func ChangeScreenSize(width int, height int, rate int16) (int, int, int16, error mu.Lock() defer mu.Unlock() - // round width and height to 8 + // round width to 8, because of Xorg width = width - (width % 8) - height = height - (height % 8) // convert variables to C types c_width, c_height, c_rate := C.int(width), C.int(height), C.short(rate)