From 6b1c9d818a5aa2bd8e4865c92515739f890212b8 Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sat, 10 Feb 2024 15:53:03 +1300 Subject: [PATCH] Rename enum AttrFlags -> AttrFlag --- addons/godot_xterm/native/src/terminal.cpp | 4 ++-- addons/godot_xterm/native/src/terminal.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/godot_xterm/native/src/terminal.cpp b/addons/godot_xterm/native/src/terminal.cpp index bc5294d..6853b54 100644 --- a/addons/godot_xterm/native/src/terminal.cpp +++ b/addons/godot_xterm/native/src/terminal.cpp @@ -200,9 +200,9 @@ int Terminal::_draw_cb(struct tsm_screen *con, // Update attributes. int attr_flags = 0; if (attr->inverse) - attr_flags |= AttrFlags::INVERSE; + attr_flags |= AttrFlag::INVERSE; if (attr->blink) - attr_flags |= AttrFlags::BLINK; + attr_flags |= AttrFlag::BLINK; term->attr_image->set_pixel(posx, posy, Color(attr_flags / 255.0f, 0, 0, 0)); // Colors. diff --git a/addons/godot_xterm/native/src/terminal.h b/addons/godot_xterm/native/src/terminal.h index ad09827..68c3edb 100644 --- a/addons/godot_xterm/native/src/terminal.h +++ b/addons/godot_xterm/native/src/terminal.h @@ -28,7 +28,7 @@ namespace godot }; public: - enum AttrFlags + enum AttrFlag { INVERSE = 1 << 0, BLINK = 1 << 1,