comparison libvo/vo_xvmc.c @ 22468:ce47c5e803e2

100l, last patch broke window resizing with xv and xvmc.
author reimar
date Thu, 08 Mar 2007 09:42:14 +0000
parents c54ad95f852a
children acfb17bdb671
comparison
equal deleted inserted replaced
22467:7336cfb3b88f 22468:ce47c5e803e2
423 return 0; 423 return 0;
424 } 424 }
425 425
426 static void calc_drwXY(uint32_t *drwX, uint32_t *drwY) { 426 static void calc_drwXY(uint32_t *drwX, uint32_t *drwY) {
427 *drwX = *drwY = 0; 427 *drwX = *drwY = 0;
428 aspect(&vo_dwidth, &vo_dheight, A_NOZOOM);
429 if (vo_fs) { 428 if (vo_fs) {
430 aspect(&vo_dwidth, &vo_dheight, A_ZOOM); 429 aspect(&vo_dwidth, &vo_dheight, A_ZOOM);
431 vo_dwidth = FFMIN(vo_dwidth, vo_screenwidth); 430 vo_dwidth = FFMIN(vo_dwidth, vo_screenwidth);
432 vo_dheight = FFMIN(vo_dheight, vo_screenheight); 431 vo_dheight = FFMIN(vo_dheight, vo_screenheight);
433 *drwX = (vo_screenwidth - vo_dwidth) / 2; 432 *drwX = (vo_screenwidth - vo_dwidth) / 2;
734 XSetInputFocus(mDisplay, vo_window, RevertToNone, CurrentTime); 733 XSetInputFocus(mDisplay, vo_window, RevertToNone, CurrentTime);
735 } 734 }
736 #endif 735 #endif
737 } 736 }
738 737
738 aspect(&vo_dwidth, &vo_dheight, A_NOZOOM);
739 if ((flags & VOFLAG_FULLSCREEN) && WinID <= 0) vo_fs = 1; 739 if ((flags & VOFLAG_FULLSCREEN) && WinID <= 0) vo_fs = 1;
740 calc_drwXY(&drwX, &drwY); 740 calc_drwXY(&drwX, &drwY);
741 741
742 panscan_calc(); 742 panscan_calc();
743 743