mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-06 02:18:04 +02:00
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
1 changed files with 11 additions and 4 deletions
|
|
@ -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…
Add table
Reference in a new issue