[longomatch] Fix rendering of background image in frame drawings with ROI



commit 68419d8719c16d56fc8ce2a5793bb1ad53d16f5e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Apr 28 11:42:31 2015 +0200

    Fix rendering of background image in frame drawings with ROI

 LongoMatch.Drawing/Utils.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Drawing/Utils.cs b/LongoMatch.Drawing/Utils.cs
index 4559683..72a9227 100644
--- a/LongoMatch.Drawing/Utils.cs
+++ b/LongoMatch.Drawing/Utils.cs
@@ -83,11 +83,13 @@ namespace LongoMatch.Drawing
                {
                        Image img;
                        ISurface surface;
-                       
-                       surface = tk.CreateSurface ((int)area.Width, (int)area.Height, image);
+
+                       Log.Debug ("Rendering frame drawing with ROI: " + area);
+                       surface = tk.CreateSurface ((int)area.Width, (int)area.Height);
                        using (IContext c = surface.Context) {
                                tk.Context = c;
                                tk.TranslateAndScale (new Point (-area.Start.X, -area.Start.Y), new Point (1, 
1));
+                               tk.DrawImage (image);
                                foreach (Drawable d in fd.Drawables) {
                                        ICanvasSelectableObject obj = CanvasFromDrawableObject (d);
                                        obj.Draw (tk, null);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]