summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/vo_directx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c
index ada591d483..d6150d5ce1 100644
--- a/libvo/vo_directx.c
+++ b/libvo/vo_directx.c
@@ -914,6 +914,9 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
case SC_MONITORPOWER:
mp_msg(MSGT_VO, MSGL_V ,"<vo_directx><INFO>killing screensaver\n" );
return 0;
+ case SC_MAXIMIZE:
+ if (!vo_fs) control(VOCTRL_FULLSCREEN, NULL);
+ return 0;
}
break;
}