Cygwin/X: Don't turn off -multiplemonitors when all monitors don't have the same pixel format when using shadow GDI engine
Don't turn off -multiplemonitors when all monitors don't have the same pixel format and when using shadow GDI engine, just warn that performance may be degraded Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Tested-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
33106e1e80
commit
5390b49467
|
@ -155,9 +155,16 @@ winScreenInit (int index,
|
||||||
&& !GetSystemMetrics (SM_SAMEDISPLAYFORMAT))
|
&& !GetSystemMetrics (SM_SAMEDISPLAYFORMAT))
|
||||||
{
|
{
|
||||||
ErrorF ("winScreenInit - Monitors do not all have same pixel format / "
|
ErrorF ("winScreenInit - Monitors do not all have same pixel format / "
|
||||||
"display depth.\n"
|
"display depth.\n");
|
||||||
"Using primary display only.\n");
|
if (pScreenInfo->dwEngine == WIN_SERVER_SHADOW_GDI)
|
||||||
pScreenInfo->fMultipleMonitors = FALSE;
|
{
|
||||||
|
ErrorF ("winScreenInit - Performance may suffer off primary display.\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ErrorF ("winScreenInit - Using primary display only.\n");
|
||||||
|
pScreenInfo->fMultipleMonitors = FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create display window */
|
/* Create display window */
|
||||||
|
|
Loading…
Reference in New Issue