Author: fejj
Date: 2007-12-31 14:33:31 -0500 (Mon, 31 Dec 2007)
New Revision: 92071

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/runtime.h
Log:
2007-12-31  Jeffrey Stedfast  <[EMAIL PROTECTED]>

        * runtime.h (CreateDownloader): Simplified.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-12-31 18:56:50 UTC (rev 92070)
+++ trunk/moon/src/ChangeLog    2007-12-31 19:33:31 UTC (rev 92071)
@@ -1,3 +1,7 @@
+2007-12-31  Jeffrey Stedfast  <[EMAIL PROTECTED]>
+
+       * runtime.h (CreateDownloader): Simplified.
+
 2007-12-31  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
        * collection.cpp: Upon destruction on VisualCollection, remove the 
visual

Modified: trunk/moon/src/runtime.h
===================================================================
--- trunk/moon/src/runtime.h    2007-12-31 18:56:50 UTC (rev 92070)
+++ trunk/moon/src/runtime.h    2007-12-31 19:33:31 UTC (rev 92071)
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  * runtime.h: Core surface and canvas definitions.
  *
@@ -108,6 +109,7 @@
        
        void SetDownloaderContext (gpointer context) { downloader_context = 
context; }
        gpointer GetDownloaderContext () { return downloader_context; }
+       
        Downloader *CreateDownloader () 
        {
                Downloader *downloader = new Downloader ();
@@ -120,15 +122,15 @@
        {
                Surface *surface = element ? element->GetSurface () : NULL;
                
-               if (surface) {
+               if (surface)
                        return surface->CreateDownloader ();
-               } else {
-                       //printf ("Surface::CreateDownloader (%p, ID: %i): "
-                       //      "Unable to create contextual downloader.\n",
-                       //      element, GET_OBJ_ID (element));
-                       //print_stack_trace ();
-                       return new Downloader ();
-               }
+               
+               //printf ("Surface::CreateDownloader (%p, ID: %i): Unable to 
create contextual downloader.\n",
+               //      element, GET_OBJ_ID (element));
+               
+               //print_stack_trace ();
+               
+               return new Downloader ();
        }
        
        void SetFPSReportFunc (MoonlightFPSReportFunc report, void *user_data)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to