From cf89c3f538a5c3867ff3ae84c26dea87e54d615e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 7 Jun 2026 10:42:40 +0200 Subject: Implement basic character table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index a7cd690..a30d4c7 100644 --- a/common.h +++ b/common.h @@ -2,6 +2,10 @@ #ifndef COMMON_H_ #define COMMON_H_ +#if defined(__GNUC__) +# pragma GCC diagnostic ignored "-Wunsuffixed-float-constants" +#endif + #include #include #include @@ -15,6 +19,7 @@ #if defined(__GNUC__) # pragma GCC diagnostic pop #endif +#include #if GTK_CHECK_VERSION(2, 12, 0) # define HAVE_ITEM_TOOLTIPS @@ -24,4 +29,11 @@ #include "char-table.h" +/* colour.c */ +double srgb_encode_unsigned(double t); +double srgb_decode_unsigned(double t); +double srgb_blend(double at0, double t, double at1); +void set_source_colour_blend(cairo_t *g, const GdkColor *at0, double t, const GdkColor *at1); +void set_source_colour(cairo_t *g, const GdkColor *colour); + #endif -- cgit v1.3.1