comparison libvo/vo_directx.c @ 33806:8c31fd7b9a08

Restore hunk disabling overlay when the Window is minimized. This was accidentally removed in r33657. Fixes bug 1950.
author reimar
date Sun, 24 Jul 2011 17:16:43 +0000
parents 835841f89315
children fb9eaa0ab770
comparison
equal deleted inserted replaced
33805:acca18850841 33806:8c31fd7b9a08
486 rd.top += (vo_dheight - height) / 2; 486 rd.top += (vo_dheight - height) / 2;
487 487
488 rd.right=rd.left+width; 488 rd.right=rd.left+width;
489 rd.bottom=rd.top+height; 489 rd.bottom=rd.top+height;
490 490
491 if(!nooverlay && (!width || !height)){
492 /*window is minimized*/
493 ddrval = g_lpddsOverlay->lpVtbl->UpdateOverlay(g_lpddsOverlay,NULL, g_lpddsPrimary, NULL, DDOVER_HIDE, NULL);
494 return 0;
495 }
496
491 /*ok, let's workaround some overlay limitations*/ 497 /*ok, let's workaround some overlay limitations*/
492 if(!nooverlay) 498 if(!nooverlay)
493 { 499 {
494 uint32_t uStretchFactor1000; //minimum stretch 500 uint32_t uStretchFactor1000; //minimum stretch
495 uint32_t xstretch1000,ystretch1000; 501 uint32_t xstretch1000,ystretch1000;