From e22e081aee314c1680bb8e702d30ffe921deec02 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Tue, 5 Mar 2024 16:18:17 -0500 Subject: [PATCH] Fix bad imlib2 typedefs for imlib<1.10 This should (properly) resolve #1743. --- lua/imlib2_old.pkg | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lua/imlib2_old.pkg b/lua/imlib2_old.pkg index 8e204a6b..65398a1e 100644 --- a/lua/imlib2_old.pkg +++ b/lua/imlib2_old.pkg @@ -60,7 +60,13 @@ typedef enum _imlib_load_error ImlibLoadError; typedef enum _imlib_text_direction Imlib_Text_Direction; typedef enum _imlib_TTF_encoding Imlib_TTF_Encoding; -typedef struct _imlib_border Imlib_Border; +typedef struct { + int left, right, top, bottom; +} Imlib_Border; + +typedef struct { + int alpha, red, green, blue; +} Imlib_Color; Imlib_Context imlib_context_new(void); void imlib_context_free(Imlib_Context context);