summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-09-07 09:54:05 +0100
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2020-09-11 11:02:00 +0100
commit1bb65b2618d3d7b320d60a4a279e2df64dd4a24d (patch)
tree8063fd6ac4d934db2abe7ba672a93b45c6e28c5d
parent9d9ee2d4c25b1b24cd1cc7a0c63ffcb8453b32fd (diff)
Remove bit fields and use fixed width integers instead.
-rw-r--r--scene/gui/text_edit.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h
index 17534cbbc8..562f4768ae 100644
--- a/scene/gui/text_edit.h
+++ b/scene/gui/text_edit.h
@@ -79,10 +79,10 @@ private:
struct Line {
Vector<Gutter> gutters;
- int width_cache : 24;
- bool marked : 1;
- bool hidden : 1;
- int wrap_amount_cache : 24;
+ int32_t width_cache;
+ bool marked;
+ bool hidden;
+ int32_t wrap_amount_cache;
String data;
Line() {
width_cache = 0;