changeset 13855:493a0dd78307

set aqua default theme
author nplourde
date Tue, 02 Nov 2004 18:16:41 +0000
parents b6b3d96a5c16
children 335778f9e6ae
files libvo/vo_quartz.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_quartz.c	Tue Nov 02 17:26:24 2004 +0000
+++ b/libvo/vo_quartz.c	Tue Nov 02 18:16:41 2004 +0000
@@ -117,7 +117,7 @@
 static MenuRef movMenu;
 static MenuRef aspectMenu;
 
-static int border = 20;
+static int border = 15;
 enum
 {
 	kQuitCmd			= 1,
@@ -605,7 +605,6 @@
 	//Create player window//////////////////////////////////////////////////
 	windowAttrs =   kWindowStandardDocumentAttributes
 					| kWindowStandardHandlerAttribute
-					| kWindowMetalAttribute
 					| kWindowCompositingAttribute
 					| kWindowLiveResizeAttribute;
 					
@@ -629,6 +628,7 @@
  	}
 	
 	//Show window
+	SetThemeWindowBackground( theWindow, kThemeBrushModelessDialogBackgroundActive, TRUE);
 	RepositionWindow(theWindow, NULL, kWindowCenterOnMainScreen);
 	ShowWindow (theWindow);
 	
@@ -1146,12 +1146,11 @@
 	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 @@
 	}
 
 	//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 @@
 		//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 @@
 		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);