OSDN Git Service

123
[psychlops/silverlight.git] / dev3 / psychlops / core / graphic / canvas.cs
index 0df4d7b..9dfe031 100644 (file)
@@ -70,12 +70,12 @@ namespace Psychlops
                        }\r
 \r
                        public void msg(string str, double x, double y) { msg(str, x, y, Color.white); }\r
-                       public virtual void msg(string str, double x, double y, Color col)\r
+                       public virtual void msg(string dstr, double x, double y, Color col)\r
                        {\r
-                               //var let = new Letters(str);\r
-                               //let.locate(x, y);\r
-                               //let.fill = col;\r
-                               //this.letters(let);\r
+                               var let = new Letters(dstr);\r
+                               let.locate(x, y);\r
+                               let.fill = col;\r
+                               this.letters(let);\r
                        }\r
                        public void var<Type>(Type val, double x, double y) { msg(val.ToString(), x, y, Color.white); }\r
                        public void var<Type>(Type val, double x, double y, Color col) { msg(val.ToString(), x, y, col); }\r
@@ -380,7 +380,7 @@ namespace Psychlops
                        LETTERS_H_ALIGN_BRIDGE.Add(Letters.HorizontalAlign.left, TextAlignment.Left);\r
                        LETTERS_H_ALIGN_BRIDGE.Add(Letters.HorizontalAlign.center, TextAlignment.Center);\r
                        LETTERS_H_ALIGN_BRIDGE.Add(Letters.HorizontalAlign.right, TextAlignment.Right);\r
-                       LETTERS_H_ALIGN_BRIDGE.Add(Letters.HorizontalAlign.left, TextAlignment.Left);\r
+                       LETTERS_H_ALIGN_BRIDGE.Add(Letters.HorizontalAlign.not_specified, TextAlignment.Left);\r
                }\r
                #endregion\r
                public Letters clone()\r