OSDN Git Service

111
[psychlops/silverlight.git] / dev4 / psychlops / core / graphic / canvas.cs
index 6216e53..e8d2af8 100644 (file)
@@ -184,9 +184,9 @@ namespace Psychlops
                        width_ = wid;\r
                        height_ = hei;\r
                        api_canvas.Dispatcher.BeginInvoke(new TwoIntProcedure(initialize__), wid, hei);\r
-                       while(!AsyncInitBool)\r
-                       {\r
-                       }\r
+                       //while(!AsyncInitBool)\r
+                       //{\r
+                       //}\r
                        Mouse._prime = api_canvas;\r
                        Main.drawable = this;\r
                        Main.canvas = this;\r
@@ -233,6 +233,13 @@ namespace Psychlops
                                polygonPool[i] = new System.Windows.Shapes.Polygon();\r
                                lettersPool[i] = new System.Windows.Controls.TextBlock();\r
                        }\r
+                       /*\r
+                       imagePool = new System.Windows.Controls.Image[100];\r
+                       for (int i = 0; i < 100; i++)\r
+                       {\r
+                               imagePool[i] = new System.Windows.Controls.Image();\r
+                       }\r
+                        * */\r
 \r
                        masterPool = new System.Windows.Controls.Canvas();\r
                        prevPool = new System.Windows.Controls.Canvas();\r
@@ -749,6 +756,7 @@ namespace Psychlops
                        System.Windows.Controls.Canvas.SetTop(d.rectPool[d.rectPoolN], datum.y);\r
                        tmp.Visibility = Visibility.Visible;\r
                        d.rectPoolN++;\r
+                       throw new Exception("Image.poolNative");\r
                        return this;\r
                }\r
 \r