diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-08-01 19:01:45 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-08-01 19:01:45 -0300 |
commit | 13d6443b10f1f6896c26a48826f782214e708e65 (patch) | |
tree | e9a71c92741dbb955b0d193edcecf937b18154aa /Project/OpenGLText.cpp | |
parent | 7be97c31c9b240cd7b320c19ee34f2460e57d537 (diff) | |
download | PSP.git-13d6443b10f1f6896c26a48826f782214e708e65.tar.gz PSP.git-13d6443b10f1f6896c26a48826f782214e708e65.tar.xz PSP.git-13d6443b10f1f6896c26a48826f782214e708e65.zip |
Text bug fix and documentation update
New fancy [PSP-UFU website](https://thales1330.github.io/PSP/) and [changelog](https://thales1330.github.io/PSP/blog) using [docusaurus](https://v2.docusaurus.io/);
Text element performance improved for OpenGL render;
Major text bug on copy fixed
Diffstat (limited to 'Project/OpenGLText.cpp')
-rw-r--r-- | Project/OpenGLText.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Project/OpenGLText.cpp b/Project/OpenGLText.cpp index f877afa..a72af7f 100644 --- a/Project/OpenGLText.cpp +++ b/Project/OpenGLText.cpp @@ -188,9 +188,13 @@ OpenGLText* OpenGLText::GetCopy() { OpenGLText* copy = new OpenGLText(); *copy = *this; + copy->m_textCoord = nullptr; + copy->Init(); + copy->m_textureID = nullptr; copy->m_bitmapSize = wxSize(0, 0); copy->m_bitmap = wxNullBitmap; + copy->SetText(copy->m_text); return copy; } |