GDK W32: Remove unneeded assertion

Just set check_for_dpi_awareness = TRUE and eventually it will be handled
correctly, even if setDpiAwareFunc() returns E_ACCESSDENIED or shcore functions
are NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=777031
This commit is contained in:
Руслан Ижбулатов 2017-01-09 09:53:46 +00:00
parent 285ebd58a8
commit 9e5fc16307

View File

@ -925,13 +925,9 @@ _gdk_win32_enable_hidpi (GdkWin32Display *display)
break;
}
}
/* Should not get here! */
if (status == DPI_STATUS_PENDING)
else
{
g_assert_not_reached ();
display->dpi_aware_type = PROCESS_DPI_UNAWARE;
status = DPI_STATUS_FAILED;
check_for_dpi_awareness = TRUE;
}
}
else