From 2c39733eabd66c73eea370f513912da6dd9df14c Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Tue, 17 Aug 2010 20:35:29 +0100 Subject: [PATCH] winex11: X11DRV_nores_SetCurrentMode return DISP_CHANGE_SUCCESSFUL when switching to the current mode. --- dlls/winex11.drv/settings.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/winex11.drv/settings.c b/dlls/winex11.drv/settings.c index 7f0753a4301..9c40225133c 100644 --- a/dlls/winex11.drv/settings.c +++ b/dlls/winex11.drv/settings.c @@ -150,7 +150,8 @@ static int X11DRV_nores_GetCurrentMode(void) static LONG X11DRV_nores_SetCurrentMode(int mode) { - TRACE("Ignoring mode change request\n"); + if (mode == 0) return DISP_CHANGE_SUCCESSFUL; + TRACE("Ignoring mode change request mode=%d\n", mode); return DISP_CHANGE_FAILED; }