(svn r8907) -Fix (r3281): reading from an unitialized variable.
authorrubidium
Mon, 26 Feb 2007 00:41:24 +0000
changeset 6485 672a2c39d471
parent 6484 8258acaa52c8
child 6486 4f8af35b11eb
(svn r8907) -Fix (r3281): reading from an unitialized variable.
src/video/cocoa_v.mm
--- a/src/video/cocoa_v.mm	Mon Feb 26 00:36:57 2007 +0000
+++ b/src/video/cocoa_v.mm	Mon Feb 26 00:41:24 2007 +0000
@@ -508,12 +508,12 @@
 			break;
 
 		case NSLeftMouseDown:
+			pt = QZ_GetMouseLocation(event);
 			if (!([ event modifierFlags ] & NSCommandKeyMask) ||
 					!QZ_MouseIsInsideView(&pt)) {
 				[NSApp sendEvent:event];
 			}
 
-			pt = QZ_GetMouseLocation(event);
 			if (!QZ_MouseIsInsideView(&pt)) {
 				QZ_ShowMouse();
 				break;