Skip to content

Commit

Permalink
Fix MythDisplayOSX
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Dec 1, 2019
1 parent 253d4df commit 56eee7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythtv/libs/libmythui/platforms/mythdisplayosx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ MythDisplayOSX::~MythDisplayOSX()
DisplayInfo MythDisplayOSX::GetDisplayInfo(int VideoRate)
{
DisplayInfo ret;
if (!HasMythMainWindow())
return ret;

CGDirectDisplayID disp = GetOSXDisplay(GetWindowID());
WId win = (qobject_cast<QWidget*>(MythMainWindow::getMainWindow()))->winId();
CGDirectDisplayID disp = GetOSXDisplay(win);
if (!disp)
return ret;

Expand Down

0 comments on commit 56eee7c

Please sign in to comment.