do not round height to 8.

This commit is contained in:
Miroslav Šedivý 2023-02-20 19:49:39 +01:00
parent 30200d4057
commit ccaaacac7c

View File

@ -189,9 +189,8 @@ func ChangeScreenSize(width int, height int, rate int16) (int, int, int16, error
mu.Lock() mu.Lock()
defer mu.Unlock() defer mu.Unlock()
// round width and height to 8 // round width to 8, because of Xorg
width = width - (width % 8) width = width - (width % 8)
height = height - (height % 8)
// convert variables to C types // convert variables to C types
c_width, c_height, c_rate := C.int(width), C.int(height), C.short(rate) c_width, c_height, c_rate := C.int(width), C.int(height), C.short(rate)