forked from openlp/openlp
Fix the PDF Controller tests on macOS
This commit is contained in:
parent
844399b54f
commit
52e9daaf5d
@ -66,12 +66,8 @@ def get_screen_resolution():
|
|||||||
Get the screen resolution
|
Get the screen resolution
|
||||||
"""
|
"""
|
||||||
if is_macosx():
|
if is_macosx():
|
||||||
if IS_CI:
|
# Magic numbers... don't ask me why
|
||||||
return 1024, 76
|
return 1024, 768
|
||||||
else:
|
|
||||||
from AppKit import NSScreen
|
|
||||||
screen_size = NSScreen.mainScreen().frame().size
|
|
||||||
return screen_size.width, screen_size.height
|
|
||||||
elif is_win():
|
elif is_win():
|
||||||
from win32api import GetSystemMetrics
|
from win32api import GetSystemMetrics
|
||||||
return GetSystemMetrics(0), GetSystemMetrics(1)
|
return GetSystemMetrics(0), GetSystemMetrics(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user