1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-05 21:07:52 +00:00

Update Lua cairo bindings.

This adds 2 missing functions: cairo_surface_set_device_scale and
cairo_surface_get_device_scale, and also requires cario 1.14 or newer.

This addresses the comments in #1083.
This commit is contained in:
Brenden Matthews 2022-11-11 11:07:15 -05:00 committed by Brenden Matthews
parent d09b8ff08c
commit 8c6257d925
2 changed files with 8 additions and 1 deletions

View File

@ -370,7 +370,7 @@ include_directories(3rdparty/toluapp/include)
if(BUILD_X11)
# Check for libraries used by Lua bindings
if(BUILD_LUA_CAIRO)
pkg_check_modules(CAIRO REQUIRED cairo cairo-xlib)
pkg_check_modules(CAIRO REQUIRED cairo>=1.14 cairo-xlib)
set(luacairo_libs ${CAIRO_LIBRARIES} ${LUA_LIBRARIES})
set(luacairo_includes ${CAIRO_INCLUDE_DIRS} ${LUA_INCLUDE_DIRS})
find_program(APP_PATCH patch)

View File

@ -908,3 +908,10 @@ void cairo_matrix_transform_distance(cairo_matrix_t * matrix, double *dx, double
void cairo_matrix_transform_point(cairo_matrix_t * matrix, double *x, double *y);
void cairo_debug_reset_static_data(void);
void cairo_surface_set_device_scale (cairo_surface_t *surface,
double x_scale,
double y_scale);
void cairo_surface_get_device_scale (cairo_surface_t *surface,
double *x_scale,
double *y_scale);