Rename enum AttrFlags -> AttrFlag

This commit is contained in:
Leroy Hopson 2024-02-10 15:53:03 +13:00
parent f4c80e6201
commit 6b1c9d818a
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 3 additions and 3 deletions

View file

@ -200,9 +200,9 @@ int Terminal::_draw_cb(struct tsm_screen *con,
// Update attributes. // Update attributes.
int attr_flags = 0; int attr_flags = 0;
if (attr->inverse) if (attr->inverse)
attr_flags |= AttrFlags::INVERSE; attr_flags |= AttrFlag::INVERSE;
if (attr->blink) 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)); term->attr_image->set_pixel(posx, posy, Color(attr_flags / 255.0f, 0, 0, 0));
// Colors. // Colors.

View file

@ -28,7 +28,7 @@ namespace godot
}; };
public: public:
enum AttrFlags enum AttrFlag
{ {
INVERSE = 1 << 0, INVERSE = 1 << 0,
BLINK = 1 << 1, BLINK = 1 << 1,