Cast width and height properties of DisplayMode to int

Most likely fixes #3276
This commit is contained in:
Jakub Piecuch 2020-11-18 16:26:01 +01:00 committed by Mathieu Comandon
parent 5917e774e4
commit 21b7fc5ba1

View file

@ -113,12 +113,12 @@ class DisplayMode:
@property
def width(self):
"""width in physical pixels"""
return self.mode_info[2]
return int(self.mode_info[2])
@property
def height(self):
"""height in physical pixels"""
return self.mode_info[3]
return int(self.mode_info[3])
@property
def frequency(self):