CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe <nihilus> 07/05/06 23:05:02
Modified files: gui : aqua.cpp Log message: More aqua-stuff CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/gui/aqua.cpp?cvsroot=gnash&r1=1.3&r2=1.4 Patches: Index: aqua.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/aqua.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -b -r1.3 -r1.4 --- aqua.cpp 6 May 2007 22:43:17 -0000 1.3 +++ aqua.cpp 6 May 2007 23:05:02 -0000 1.4 @@ -17,75 +17,19 @@ // // -/* $Id: aqua.cpp,v 1.3 2007/05/06 22:43:17 nihilus Exp $ */ +/* $Id: aqua.cpp,v 1.4 2007/05/06 23:05:02 nihilus Exp $ */ -#include <CoreServices/CoreServices.h> +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "gnash.h" +#include "gui.h" +#include "aquasup.h" +#include "log.h" +#include "movie_root.h" -void MyInit( void ); -void MyTimerProc( TMTaskPtr tmTaskPtr ); +#include "render_handler.h" +#include "render_handler_ogl.h" -Boolean gQuitFlag = false; -int gCount = 0; - -TimerUPP gMyTimerProc = NULL; - -int main( int argc, char *argv[]) -{ - MyInit(); - - while ( false == gQuitFlag ) { - ; - } - - DisposeTimerUPP( gMyTimerProc ); - - return 0; -} - -void MyTimerProc( TMTaskPtr tmTaskPtr ) -{ - DateTimeRec localDateTime; - - GetTime( &localDateTime ); - - printf( "MyTimerProc at %d:%d:%d\n", localDateTime.hour, localDateTime.minute, localDateTime.second ); - - gCount++; - - if ( gCount > 4 ) - { - gQuitFlag = true; - } - else - { - PrimeTimeTask( ( QElemPtr )tmTaskPtr, 1000 ); - } -} - -void MyInit( void ) -{ - struct TMTask myTask; - OSErr err = 0; - - gMyTimerProc = NewTimerUPP( MyTimerProc ); - - if ( gMyTimerProc != NULL ) - { - myTask.qLink = NULL; - myTask.qType = 0; - myTask.tmAddr = gMyTimerProc; - myTask.tmCount = 0; - myTask.tmWakeUp = 0; - myTask.tmReserved = 0; - - err = InstallTimeTask( ( QElemPtr )&myTask ); - - if ( err == noErr ) - PrimeTimeTask( ( QElemPtr )&myTask, 1000 ); - else { - DisposeTimerUPP( gMyTimerProc ); - gMyTimerProc = NULL; - gQuitFlag = true; - } - } -} +#include <Carbon/Carbon.h> \ No newline at end of file _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit