From f53773f58e2b8f8ecd84d1c4835ab362f36facec Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Wed, 10 Apr 2024 09:27:00 -0400 Subject: [PATCH] COGL API changes --- js/ui/realms/realmWindowFrame.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/ui/realms/realmWindowFrame.js b/js/ui/realms/realmWindowFrame.js index 11457dffb..0e2294b23 100644 --- a/js/ui/realms/realmWindowFrame.js +++ b/js/ui/realms/realmWindowFrame.js @@ -218,7 +218,11 @@ class RealmFrameEffect extends Clutter.Effect { let s = this._color.to_string(); let cogl_color = new Cogl.Color(); - cogl_color.init_from_4ub(this._color.red, this._color.green, this._color.blue, 0xc4); + cogl_color.init_from_4f( + this._color.red / 255.0, + this._color.green / 255.0, + this._color.blue / 255.0, + 0xc4 / 255.0); this._pipeline.set_color(cogl_color); } @@ -303,7 +307,7 @@ class RealmFrameEffect extends Clutter.Effect { if (!this._pipeline) { let framebuffer = ctx.get_framebuffer(); let coglContext = framebuffer.get_context(); - this._pipeline = new Cogl.Pipeline(coglContext); + this._pipeline = Cogl.Pipeline.new(coglContext); this.setPipelineColor(); }