summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-05-05 02:38:35 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-05-05 02:38:35 +0000
commit4ba93d4a2a48f2e23dff463ac94fa690ba70a199 (patch)
tree7027c29172811507e769c2a6b911bde7eea35fef /libvo
parentba0a69a969d2dd382d4a3297ab58ab73c741d53e (diff)
downloadmpv-4ba93d4a2a48f2e23dff463ac94fa690ba70a199.tar.bz2
mpv-4ba93d4a2a48f2e23dff463ac94fa690ba70a199.tar.xz
Disable live resize for yuv - HW accel bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12426 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_quartz.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c
index 38a28af8bc..00df41a6e5 100644
--- a/libvo/vo_quartz.c
+++ b/libvo/vo_quartz.c
@@ -334,6 +334,11 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32
windowAttrs = kWindowStandardDocumentAttributes
| kWindowStandardHandlerAttribute
| kWindowLiveResizeAttribute;
+
+ if (!(IMGFMT_IS_RGB(image_format)))
+ {
+ windowAttrs &= (~kWindowResizableAttribute);
+ }
SetRect(&winRect, 0, 0, d_width, d_height);
SetRect(&dstRect, 0, 0, d_width, d_height);
@@ -900,10 +905,10 @@ void window_resized()
CreateCGContextForPort(GetWindowPort(theWindow),&context);
//fill background with black
- //CGRect winBounds = CGRectMake( winRect.top, winRect.left, winRect.right, winRect.bottom);
- //CGContextSetRGBFillColor(context, 0.0, 0.0, 0.0, 1.0);
- //CGContextFillRect(context, winBounds);
- //CGContextFlush(context);
+ CGRect winBounds = CGRectMake( winRect.top, winRect.left, winRect.right, winRect.bottom);
+ CGContextSetRGBFillColor(context, 0.0, 0.0, 0.0, 1.0);
+ CGContextFillRect(context, winBounds);
+ CGContextFlush(context);
#ifdef QUARTZ_ENABLE_YUV
switch (image_format)
@@ -977,7 +982,9 @@ void window_fullscreen()
HideCursor();
//go fullscreen
- ChangeWindowAttributes(theWindow, 0, kWindowResizableAttribute);
+ if (IMGFMT_IS_RGB(image_format))
+ ChangeWindowAttributes(theWindow, 0, kWindowResizableAttribute);
+
MoveWindow (theWindow, 0, 0, 1);
SizeWindow(theWindow, device_width, device_height,1);
@@ -999,7 +1006,9 @@ void window_fullscreen()
ShowCursor();
//revert window to previous setting
- ChangeWindowAttributes(theWindow, kWindowResizableAttribute, 0);
+ if (IMGFMT_IS_RGB(image_format))
+ ChangeWindowAttributes(theWindow, kWindowResizableAttribute, 0);
+
SizeWindow(theWindow, oldRect.right, oldRect.bottom,1);
RepositionWindow(theWindow, NULL, kWindowCascadeOnMainScreen);