diff options
| author | physick <mynameisgennadiy@vk.com> | 2026-07-12 12:55:19 +0500 |
|---|---|---|
| committer | physick <mynameisgennadiy@vk.com> | 2026-07-12 12:55:19 +0500 |
| commit | 71e1f2dc8e9e1b3ee595a2712ec24d11ce243f1c (patch) | |
| tree | fe5d83589ef618dee9c34ff1a229cee851300f09 /src/ui_elements | |
| parent | 58a26ca05aacb4736e9e7e652badd43a8085d1f1 (diff) | |
Result view
Diffstat (limited to 'src/ui_elements')
| -rw-r--r-- | src/ui_elements/TextEditor.c | 1 | ||||
| -rw-r--r-- | src/ui_elements/UI.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ui_elements/TextEditor.c b/src/ui_elements/TextEditor.c index 1097f1c..06cfc41 100644 --- a/src/ui_elements/TextEditor.c +++ b/src/ui_elements/TextEditor.c @@ -1,4 +1,5 @@ // TODO: fix j being outside of the box SOME FUCKING HOW +// upd. seems to be fixed with a swirch to monofont #include "UI.h" #include "../resources/resources.h" diff --git a/src/ui_elements/UI.c b/src/ui_elements/UI.c index a9ab498..c653731 100644 --- a/src/ui_elements/UI.c +++ b/src/ui_elements/UI.c @@ -40,6 +40,7 @@ bool IsMouseInRec(Rectangle rec) { } void DrawTextInRec(Rectangle rec, char *text, Font *font, int height, Color color, float padding, int *scroll) { + if (text == NULL) return; int spans[MAX_LINES]; rec.x += padding; rec.y += padding; |
