aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-15 11:31:22 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-15 11:31:22 +0200
commite349658ad697ef950c85a85faa6259245ad6d266 (patch)
treec20834d46cbb881ae15c3bd92326e64d24891e09 /src/GraphicObjects
parent75bdbe50aff36405a56422783c4ef84f951f4dc6 (diff)
debug and typo
Diffstat (limited to 'src/GraphicObjects')
-rw-r--r--src/GraphicObjects/AnalogMeter.cs9
-rw-r--r--src/GraphicObjects/GraphicObject.cs4
-rw-r--r--src/GraphicObjects/TemplatedContainer.cs4
-rw-r--r--src/GraphicObjects/TemplatedControl.cs4
4 files changed, 6 insertions, 15 deletions
diff --git a/src/GraphicObjects/AnalogMeter.cs b/src/GraphicObjects/AnalogMeter.cs
index bf7f1c24..1be24c4f 100644
--- a/src/GraphicObjects/AnalogMeter.cs
+++ b/src/GraphicObjects/AnalogMeter.cs
@@ -17,15 +17,6 @@ namespace go
}
#endregion
- #region implemented abstract members of TemplatedControl
-
- protected override void loadTemplate (GraphicObject template = null)
- {
- base.loadTemplate (template);
- }
-
- #endregion
-
#region GraphicObject Overrides
protected override void onDraw (Context gr)
{
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs
index 6a146c64..41720ed9 100644
--- a/src/GraphicObjects/GraphicObject.cs
+++ b/src/GraphicObjects/GraphicObject.cs
@@ -480,6 +480,8 @@ namespace go
{
if (Parent==null)
return;
+
+ //Debug.WriteLine ("Layout change: " + this.ToString () + ":" + LastSlots.ToString() + "=>" + Slot.ToString ());
switch (layoutType) {
case LayoutingType.Width:
@@ -644,7 +646,7 @@ namespace go
using (ImageSurface draw =
new ImageSurface(bmp, Format.Argb32, Slot.Width, Slot.Height, stride)) {
using (Context gr = new Context (draw)) {
- gr.Antialias = Antialias.Gray;
+ gr.Antialias = Antialias.Subpixel;
onDraw (gr);
}
draw.Flush ();
diff --git a/src/GraphicObjects/TemplatedContainer.cs b/src/GraphicObjects/TemplatedContainer.cs
index 4d8eb832..a19f6c28 100644
--- a/src/GraphicObjects/TemplatedContainer.cs
+++ b/src/GraphicObjects/TemplatedContainer.cs
@@ -26,13 +26,13 @@ namespace go
{
public abstract class TemplatedContainer : TemplatedControl
{
- [XmlIgnore]
- public abstract GraphicObject Content{ get; set;}
+ [XmlIgnore]public abstract GraphicObject Content{ get; set;}
protected override void loadTemplate (GraphicObject template)
{
base.loadTemplate (template);
}
+
public TemplatedContainer () : base()
{
}
diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs
index ca3ed68c..87bbeb09 100644
--- a/src/GraphicObjects/TemplatedControl.cs
+++ b/src/GraphicObjects/TemplatedControl.cs
@@ -108,9 +108,7 @@ namespace go
}else
this.SetChild (template);
}
-
-
-
+
#region IXmlSerializable
public override System.Xml.Schema.XmlSchema GetSchema(){ return null; }