From e32f915a5ce0420bbbd2c92d0ba1effcb6d45b81 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 7 Apr 2023 00:34:56 +0200 Subject: [PATCH] Load_surface() has 3 arguments since commit bfbeaf4ca86d55eca4d995a7f1c505fbd4a42854 --- src/x11screen.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/x11screen.c b/src/x11screen.c index f9b2fd32..6d8be42e 100644 --- a/src/x11screen.c +++ b/src/x11screen.c @@ -327,11 +327,7 @@ void Allow_drag_and_drop(int flag) void Define_icon(void) { - char * icon_path; - - icon_path = Filepath_append_to_dir(Data_directory, "gfx2.png"); // 48x48 - icon = Load_surface(icon_path, NULL); - free(icon_path); + icon = Load_surface("gfx2.png", Data_directory, NULL); // 48x48 } void Set_mouse_position(void)