summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/menu.c1
-rw-r--r--src/tooltip.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/src/menu.c b/src/menu.c
index caffa81..262a8f1 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -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;
}