✨ Apply clang-format

This commit is contained in:
Simon Schneegans
2025-02-15 16:59:17 +01:00
parent 15ac37f746
commit b6dc234d3f
+5 -3
View File
@@ -116,8 +116,8 @@ export var Shader = GObject.registerClass({
this._timeline.set_duration(duration); this._timeline.set_duration(duration);
this._timeline.start(); this._timeline.start();
// Make sure that no fullscreen window is drawn over our animations. Since GNOME 48 this is a // Make sure that no fullscreen window is drawn over our animations. Since GNOME 48
// "global" method. // this is a "global" method.
if (Meta.disable_unredirect_for_display) { if (Meta.disable_unredirect_for_display) {
Meta.disable_unredirect_for_display(global.display); Meta.disable_unredirect_for_display(global.display);
} else { } else {
@@ -190,7 +190,9 @@ export var Shader = GObject.registerClass({
const declarations = code.substr(0, match.index); const declarations = code.substr(0, match.index);
const main = match[1]; const main = match[1];
this.add_glsl_snippet(Cogl.SnippetHook ? Cogl.SnippetHook.FRAGMENT : Shell.SnippetHook.FRAGMENT, declarations, main, true); this.add_glsl_snippet(
Cogl.SnippetHook ? Cogl.SnippetHook.FRAGMENT : Shell.SnippetHook.FRAGMENT,
declarations, main, true);
} }
// We use this vfunc to trigger the update as it allows calling this.get_pipeline() in // We use this vfunc to trigger the update as it allows calling this.get_pipeline() in