mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
do not round height to 8.
This commit is contained in:
parent
30200d4057
commit
ccaaacac7c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user