diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-09-04 13:42:11 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-09-05 06:55:53 +0300 |
commit | 238a2a64b31e6a0b431309e363067a7fe57125ae (patch) | |
tree | 99244c8e7cb542c9dc37f551e7aaf15720f5c478 /indra/llui/llviewmodel.h | |
parent | 49abe2c8bc23e306d304d02704e2b883648baea6 (diff) |
viewer#2411 Use font buffer in text segments
Diffstat (limited to 'indra/llui/llviewmodel.h')
-rw-r--r-- | indra/llui/llviewmodel.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llui/llviewmodel.h b/indra/llui/llviewmodel.h index 6cf2200a81..16b0800ce2 100644 --- a/indra/llui/llviewmodel.h +++ b/indra/llui/llviewmodel.h @@ -105,7 +105,8 @@ public: // New functions /// Get the stored value in string form const LLWString& getDisplay() const { return mDisplay; } - LLWString& getEditableDisplay() { mDirty = true; mUpdateFromDisplay = true; return mDisplay; } + S32 getDisplayGeneration() const { return mDisplayGeneration; } + LLWString& getEditableDisplay(); /** * Set the display string directly (see LLTextEditor). What the user is @@ -120,6 +121,7 @@ private: /// To avoid converting every widget's stored value from LLSD to LLWString /// every frame, cache the converted value LLWString mDisplay; + S32 mDisplayGeneration = -1; /// As the user edits individual characters (setDisplay()), defer /// LLWString-to-UTF8 conversions until s/he's done. |