[Mplayer-cvslog] CVS: main/libvo vo_quartz.c,1.26,1.27

Nicolas Plourde CVS syncmail at mplayerhq.hu
Thu Oct 21 13:36:23 CEST 2004


CVS change done by Nicolas Plourde CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv32456/libvo

Modified Files:
	vo_quartz.c 
Log Message:
move variable declaration at beginning of block

Index: vo_quartz.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_quartz.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- vo_quartz.c	20 Oct 2004 23:33:31 -0000	1.26
+++ vo_quartz.c	21 Oct 2004 11:36:20 -0000	1.27
@@ -250,9 +250,11 @@
 			case kEventMouseDown:
 			{
 				EventMouseButton button;
+				short part;
+
 				GetEventParameter(event, kEventParamMouseButton, typeMouseButton, 0, sizeof(EventMouseButton), 0, &button);
 				
-				short part = FindWindow(mousePos,&tmpWin);
+				part = FindWindow(mousePos,&tmpWin);
 				
 				if(part == inMenuBar)
 				{
@@ -276,9 +278,11 @@
 			case kEventMouseWheelMoved:
 			{
 				int wheel;
+				short part;
+
 				GetEventParameter(event, kEventParamMouseWheelDelta, typeSInt32, 0, sizeof(int), 0, &wheel);
 
-				short part = FindWindow(mousePos,&tmpWin);
+				part = FindWindow(mousePos,&tmpWin);
 				
 				if(part == inContent)
 				{
@@ -301,13 +305,13 @@
 static OSStatus MainWindowCommandHandler(EventHandlerCallRef nextHandler, EventRef event, void *userData)
 {
     OSStatus result = noErr;
+	UInt32_t d_width;
+	UInt32_t d_height;
 	UInt32 class = GetEventClass (event);
 	UInt32 kind = GetEventKind (event); 
 
 	result = CallNextEventHandler(nextHandler, event);
 	
-	uint32_t d_width;
-	uint32_t d_height;
 	aspect(&d_width,&d_height,A_NOZOOM);
 
 	if(class == kEventClassCommand)
@@ -462,10 +466,11 @@
 	WindowAttributes	windowAttrs;
 	GDHandle			deviceHdl;
 	OSErr				qterr;
-	
-	//Get Main device info///////////////////////////////////////////////////
 	int i;
-	
+
+	//Get Main device info///////////////////////////////////////////////////
+
+
 	deviceHdl = GetMainDevice();
 	
 	for(i=0; i<device_id; i++)




More information about the MPlayer-cvslog mailing list