From f2da59054cedd1c07779e72537da4d7b14616b48 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 2 Aug 2024 06:01:36 +0200 Subject: Ensure correct blending function for transparent window --- tests/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/main.c b/tests/main.c index 720cf06..f52e3d4 100644 --- a/tests/main.c +++ b/tests/main.c @@ -220,7 +220,7 @@ static bool clipboard_callback(const unsigned char *data, size_t size, mgl_clipb return true; } -int main(int argc, char **argv) { +int main(void) { test_hash_map(); test_utf8(); @@ -252,7 +252,7 @@ int main(int argc, char **argv) { if(mgl_texture_init(&texture) != 0) return 1; - if(mgl_texture_load_from_file(&texture, "tests/X11.jpg", &(mgl_texture_load_options){ false, false }) != 0) + if(mgl_texture_load_from_file(&texture, "tests/X11.jpg", &(mgl_texture_load_options){ .compressed = false, .pixel_coordinates = false, .mipmap = false }) != 0) return 1; if(mgl_mapped_file_load("/usr/share/fonts/TTF/Hack-Regular.ttf", &font_file, &(mgl_memory_mapped_file_load_options){ .readable = true, .writable = false }) != 0) -- cgit v1.2.3