aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-02 06:01:36 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-02 06:01:36 +0200
commitf2da59054cedd1c07779e72537da4d7b14616b48 (patch)
treeb6c8606c1e7494d2fc17439552db30f55b97fd26 /tests
parent470dac0e891c1ec59dfe52e77861cf068837976d (diff)
Ensure correct blending function for transparent window
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c4
1 files changed, 2 insertions, 2 deletions
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)