[gnome-2048/arnaudb/wip/gtk4: 11/34] Adapt to RGBA.



commit 3226d0f46b30b8d81aa910dc570566d99339a9c5
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Apr 28 08:20:14 2020 +0200

    Adapt to RGBA.

 src/view.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/view.vala b/src/view.vala
index 65aa2d3..8145ceb 100644
--- a/src/view.vala
+++ b/src/view.vala
@@ -67,7 +67,7 @@ private class RoundedRectangle : Gtk.DrawingArea
         ctx.arc (radius,         height - radius, radius,  HALF_PI,  Math.PI);
         ctx.close_path ();
 
-        ctx.set_source_rgba (_color);
+        Gdk.cairo_set_source_rgba (ctx, _color);
         ctx.fill ();
 
         return false;
@@ -140,7 +140,7 @@ private class TileView : RoundedRectangle
     {
         base._draw (ctx, width, height);
 
-        ctx.set_source_rgb (255, 255, 255);
+        ctx.set_source_rgb (255.0, 255.0, 255.0);
 
         Pango.Layout layout = Pango.cairo_create_layout (ctx);
         Pango.FontDescription font_desc = Pango.FontDescription.from_string ("Sans Bold %dpx".printf (height 
/ 4));


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