diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2025-04-07 00:13:00 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2025-04-07 00:13:00 +0200 |
commit | 27c0b38e4ebc2f2e1b1fb49e684312ce58e0b78a (patch) | |
tree | 4cb0743d2534051956d308ff1fbba6b92ffe55d4 /examples | |
parent | e2ad36c4cd9f757b3843ac59c5c436819b70f442 (diff) | |
download | reduced_system_layer-27c0b38e4ebc2f2e1b1fb49e684312ce58e0b78a.zip |
Fix graphics cache glitch
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/ui.c b/examples/ui.c index a7877dc..943828d 100644 --- a/examples/ui.c +++ b/examples/ui.c @@ -221,9 +221,9 @@ void update_and_render_frame(void) { text[i] = g_platform.drop_files[0].data[i]; } - draw_text_cursor_cached((vec4_f32) { 1.f, 1.f, 1.f, 1.f }, (Box) { x0, y0, w, h }, (vec2) { 10., 10. }, text_len, text, cursor, selection); - draw_text_area_cached((vec4_f32) { 0.f, 0.f, 0.f, 1.f }, (Box) { x0 + 8, y0 - 8, w, h }, (vec2) { 10., 10. }, text_len, text); - draw_text_area_cached(color, (Box) { x0, y0, w, h }, (vec2) { 10., 10. }, text_len, text); + draw_text_cursor_cached(0, (vec4_f32) { 1.f, 1.f, 1.f, 1.f }, (Box) { x0, y0, w, h }, (vec2) { 10., 10. }, text_len, text, cursor, selection); + draw_text_area_cached(0, (vec4_f32) { 0.f, 0.f, 0.f, 1.f }, (Box) { x0 + 8, y0 - 8, w, h }, (vec2) { 10., 10. }, text_len, text); + draw_text_area_cached(0, color, (Box) { x0, y0, w, h }, (vec2) { 10., 10. }, text_len, text); render_main_window_frame(); } |