[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/gui aqua.cpp
From: |
Markus Gothe |
Subject: |
[Gnash-commit] gnash/gui aqua.cpp |
Date: |
Tue, 24 Jul 2007 14:18:09 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Markus Gothe <nihilus> 07/07/24 14:18:09
Modified files:
gui : aqua.cpp
Log message:
Clean-up
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/aqua.cpp?cvsroot=gnash&r1=1.21&r2=1.22
Patches:
Index: aqua.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/aqua.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- aqua.cpp 24 Jul 2007 14:02:27 -0000 1.21
+++ aqua.cpp 24 Jul 2007 14:18:08 -0000 1.22
@@ -18,7 +18,7 @@
//
//
-/* $Id: aqua.cpp,v 1.21 2007/07/24 14:02:27 nihilus Exp $ */
+/* $Id: aqua.cpp,v 1.22 2007/07/24 14:18:08 nihilus Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -43,67 +43,6 @@
#include <Carbon/Carbon.h>
WindowRef myWindow;
-EventHandlerUPP myCustomWindowUPP;
-Rect theBounds;
-
-EventTypeSpec eventList[] = {{kEventClassWindow, kEventWindowDrawFrame},
- {kEventClassWindow, kEventWindowHitTest}};
-
-static pascal OSStatus MyCustomWindowEventHandler (
- EventHandlerCallRef myHandler,
- EventRef theEvent, void* userData)
-{
-
- #pragma unused (myHandler,userData)
-
- OSStatus result = eventNotHandledErr;
-
- UInt32 whatHappened;
- WindowDefPartCode where;
-
- GrafPtr thePort;
- Rect windBounds;
-
- whatHappened = GetEventKind (theEvent);
- GNASH_REPORT_FUNCTION;
- switch (whatHappened)
- {
- case kEventWindowInit:
-
- GetEventParameter (theEvent, kEventParamDirectObject,
- typeWindowRef, NULL,
sizeof(WindowRef),
- NULL, &myWindow);
-
- SetThemeWindowBackground (myWindow,
kThemeBrushMovableModalBackground, true); // 1
- result = noErr;
- break;
-
- case kEventWindowDrawFrame: // 2
-
- GetPort(&thePort); // 3
- GetPortBounds(thePort, &windBounds);
-
- PenNormal(); // 4
- PenSize (10,10);
- FrameRect(&windBounds); // 5
-
- result = noErr;
- break;
-
- case kEventWindowHitTest: // 6
-
- /* determine what part of the window the user hit */
- where = wInDrag;
- SetEventParameter (theEvent, kEventParamWindowDefPart, // 7
- typeWindowDefPartCode,
- sizeof(WindowDefPartCode), &where);
-
- result = noErr;
- break;
- }
-
- return (result);
-}
namespace gnash {
@@ -126,7 +65,7 @@
{
GNASH_REPORT_FUNCTION;
- RepositionWindow (myWindow, NULL, kWindowCascadeOnMainScreen);
+ RepositionWindow(myWindow, NULL, kWindowCascadeOnMainScreen);
ShowWindow(myWindow);
RunApplicationEventLoop();
return true;
@@ -193,6 +132,7 @@
{
CFStringRef windowTitle;
OSStatus result;
+ Rect theBounds;
GNASH_REPORT_FUNCTION;
- [Gnash-commit] gnash/gui aqua.cpp, Markus Gothe, 2007/07/23
- [Gnash-commit] gnash/gui aqua.cpp, Markus Gothe, 2007/07/24
- [Gnash-commit] gnash/gui aqua.cpp, Markus Gothe, 2007/07/24
- [Gnash-commit] gnash/gui aqua.cpp, Markus Gothe, 2007/07/24
- [Gnash-commit] gnash/gui aqua.cpp,
Markus Gothe <=
- [Gnash-commit] gnash/gui aqua.cpp, Markus Gothe, 2007/07/24
- [Gnash-commit] gnash/gui aqua.cpp, Markus Gothe, 2007/07/26