diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-30 13:37:59 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-30 13:37:59 +0300 |
commit | 2a7c5ff7b9f887566a0e0d33ae6474822e23f571 (patch) | |
tree | 0e324bcfb185636460c961333b3a4a925e56a062 /src/ui/window.c | |
parent | a733f5c5a934b8c793f1ca398dc0e9b62a4dccf9 (diff) |
Text: Improved glyph cache allocator
Tighter row packing by collecting glyphs of similar height to the same rows.
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index feb917ff..042b53a9 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -515,7 +515,7 @@ void draw_Window(iWindow *d) { | |||
515 | #if 0 | 515 | #if 0 |
516 | /* Text cache debugging. */ { | 516 | /* Text cache debugging. */ { |
517 | SDL_Texture *cache = glyphCache_Text(); | 517 | SDL_Texture *cache = glyphCache_Text(); |
518 | SDL_Rect rect = { 140, 60, 1024, 1024 }; | 518 | SDL_Rect rect = { d->root->rect.size.x - 640, 0, 640, 4 * 640 }; |
519 | SDL_SetRenderDrawColor(d->render, 0, 0, 0, 255); | 519 | SDL_SetRenderDrawColor(d->render, 0, 0, 0, 255); |
520 | SDL_RenderFillRect(d->render, &rect); | 520 | SDL_RenderFillRect(d->render, &rect); |
521 | SDL_RenderCopy(d->render, glyphCache_Text(), NULL, &rect); | 521 | SDL_RenderCopy(d->render, glyphCache_Text(), NULL, &rect); |