mirror of
https://github.com/lutris/lutris
synced 2024-09-19 15:52:08 +00:00
Cast width and height properties of DisplayMode to int
Most likely fixes #3276
This commit is contained in:
parent
5917e774e4
commit
21b7fc5ba1
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue