diff options
| author | raven <citrons@mondecitronne.com> | 2026-04-13 14:17:08 -0500 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2026-04-13 14:17:08 -0500 |
| commit | 5f53900404fcd5835101ea0af593e417d160a5e4 (patch) | |
| tree | c3feba3c0c721537e883d4eff98430c5dd2351a5 | |
| parent | dc20f9c1ea65e81e5376f622eddf3877f08b05a2 (diff) | |
remove calls to SDL_SyncWindow
| -rw-r--r-- | src/menu.c | 1 | ||||
| -rw-r--r-- | src/tooltip.c | 2 |
2 files changed, 0 insertions, 3 deletions
@@ -68,7 +68,6 @@ menu *create_menu(menu_entry *entries, int count, int x, int y) { SDL_SetWindowPosition(m->window, x, y); SDL_SetWindowSize(m->window, w, h); SDL_RaiseWindow(m->window); - SDL_SyncWindow(m->window); return m; } diff --git a/src/tooltip.c b/src/tooltip.c index e900e40..c1ea112 100644 --- a/src/tooltip.c +++ b/src/tooltip.c @@ -34,7 +34,6 @@ void set_tooltip_text(tooltip *t, const char *text) { float tw, th; SDL_GetTextureSize(t->texture, &tw, &th); SDL_SetWindowSize(t->window, tw + PADDING*2, th + PADDING*2); - SDL_SyncWindow(t->window); } void show_tooltip(tooltip *t, int x, int y) { @@ -51,7 +50,6 @@ void show_tooltip(tooltip *t, int x, int y) { SDL_SetWindowPosition(t->window, x + PADDING, y - th - PADDING*3); if (t->hidden) { SDL_ShowWindow(t->window); - SDL_SyncWindow(t->window); t->hidden = false; } |
