[dia] [transform] Fix visual complaints color alpha value



commit c42ff94024daed1becb97753580d987748784ae9
Author: Hans Breuer <hans breuer org>
Date:   Fri Jul 15 13:25:04 2011 +0200

    [transform] Fix visual complaints color alpha value
    
    The simulated transformation was broken by the introduction of
    transparency. The transformed bounding box was drawn completely
    transparent.

 lib/diarenderer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/diarenderer.c b/lib/diarenderer.c
index 0cd5263..42b5d37 100644
--- a/lib/diarenderer.c
+++ b/lib/diarenderer.c
@@ -211,7 +211,7 @@ draw_object (DiaRenderer *renderer,
     /* visual complaints - not completely correct */
     Point pt[4];
     Rectangle *bb = &object->bounding_box;
-    Color red = { 1.0, 0.0, 0.0 };
+    Color red = { 1.0, 0.0, 0.0, 1.0 };
 
     pt[0].x = matrix->xx * bb->left + matrix->xy * bb->top + matrix->x0;
     pt[0].y = matrix->yx * bb->left + matrix->yy * bb->top + matrix->y0;



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