summaryrefslogtreecommitdiff
path: root/src/tooltip.c
diff options
context:
space:
mode:
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;
}