COGL API changes

This commit is contained in:
Bruce Leidl 2024-04-10 09:27:00 -04:00
parent c33f18c4d5
commit f53773f58e

View File

@ -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();
}