summaryrefslogtreecommitdiff
path: root/src/tooltip.c
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2026-04-13 14:17:08 -0500
committerraven <citrons@mondecitronne.com>2026-04-13 14:17:08 -0500
commit5f53900404fcd5835101ea0af593e417d160a5e4 (patch)
treec3feba3c0c721537e883d4eff98430c5dd2351a5 /src/tooltip.c
parentdc20f9c1ea65e81e5376f622eddf3877f08b05a2 (diff)
remove calls to SDL_SyncWindow
Diffstat (limited to 'src/tooltip.c')
-rw-r--r--src/tooltip.c2
1 files changed, 0 insertions, 2 deletions
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;
}