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
|
@ -151,13 +151,20 @@ winScreenInit (int index,
|
|||
* Check that all monitors have the same display depth if we are using
|
||||
* multiple monitors
|
||||
*/
|
||||
if (pScreenInfo->fMultipleMonitors
|
||||
if (pScreenInfo->fMultipleMonitors
|
||||
&& !GetSystemMetrics (SM_SAMEDISPLAYFORMAT))
|
||||
{
|
||||
ErrorF ("winScreenInit - Monitors do not all have same pixel format / "
|
||||
"display depth.\n"
|
||||
"Using primary display only.\n");
|
||||
pScreenInfo->fMultipleMonitors = FALSE;
|
||||
"display depth.\n");
|
||||
if (pScreenInfo->dwEngine == WIN_SERVER_SHADOW_GDI)
|
||||
{
|
||||
ErrorF ("winScreenInit - Performance may suffer off primary display.\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
ErrorF ("winScreenInit - Using primary display only.\n");
|
||||
pScreenInfo->fMultipleMonitors = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
/* Create display window */
|
||||
|
|
Loading…
Reference in New Issue
Block a user