summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-11-02 18:16:41 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-11-02 18:16:41 +0000
commit086a7bea56735b0cd8a7f346130ea9a83c0eb3bc (patch)
tree5e5856586ce8f3c554497f59b9917855d980132d /libvo
parentd49cba10c43d6f8ae5d5360be5899eeb7b5a45e0 (diff)
downloadmpv-086a7bea56735b0cd8a7f346130ea9a83c0eb3bc.tar.bz2
mpv-086a7bea56735b0cd8a7f346130ea9a83c0eb3bc.tar.xz
set aqua default theme
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13856 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_quartz.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c
index e7a26ebe94..29bbde5617 100644
--- a/libvo/vo_quartz.c
+++ b/libvo/vo_quartz.c
@@ -117,7 +117,7 @@ static MenuRef windMenu;
static MenuRef movMenu;
static MenuRef aspectMenu;
-static int border = 20;
+static int border = 15;
enum
{
kQuitCmd = 1,
@@ -605,7 +605,6 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32
//Create player window//////////////////////////////////////////////////
windowAttrs = kWindowStandardDocumentAttributes
| kWindowStandardHandlerAttribute
- | kWindowMetalAttribute
| kWindowCompositingAttribute
| kWindowLiveResizeAttribute;
@@ -629,6 +628,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32
}
//Show window
+ SetThemeWindowBackground( theWindow, kThemeBrushModelessDialogBackgroundActive, TRUE);
RepositionWindow(theWindow, NULL, kWindowCenterOnMainScreen);
ShowWindow (theWindow);
@@ -1146,12 +1146,11 @@ void window_resized()
float aspectX;
float aspectY;
- int padding;
+ int padding = 0;
uint32_t d_width;
uint32_t d_height;
- Rect tmpRect;
CGRect tmpBounds;
GetPortBounds( GetWindowPort(theWindow), &winRect );
@@ -1181,6 +1180,7 @@ void window_resized()
}
//Clear Background
+ SetThemeWindowBackground( theWindow, kThemeBrushUtilityWindowBackgroundInactive, TRUE);
tmpBounds = CGRectMake( 0, border, winRect.right, winRect.bottom);
CreateCGContextForPort(GetWindowPort(theWindow),&context);
CGContextClearRect(context, tmpBounds);
@@ -1289,7 +1289,7 @@ void window_fullscreen()
//go fullscreen
border = 0;
panscan_calc();
- ChangeWindowAttributes(theWindow, 0, kWindowResizableAttribute);
+ ChangeWindowAttributes(theWindow, 0, kWindowResizableAttribute|kWindowNoShadowAttribute);
MoveWindow(theWindow, deviceRect.left-(vo_panscan_x >> 1), deviceRect.top-(vo_panscan_y >> 1), 1);
SizeWindow(theWindow, device_width+vo_panscan_x, device_height+vo_panscan_y,1);
@@ -1314,8 +1314,8 @@ void window_fullscreen()
ShowCursor();
//revert window to previous setting
- border = 20;
- ChangeWindowAttributes(theWindow, kWindowResizableAttribute, 0);
+ border = 15;
+ ChangeWindowAttributes(theWindow, kWindowResizableAttribute, kWindowNoShadowAttribute);
SizeWindow(theWindow, oldWinRect.right, oldWinRect.bottom,1);
MoveWindow(theWindow, oldWinBounds.left, oldWinBounds.top, 1);