diff --git a/CHANGELOG b/CHANGELOG index a5e7864..132693b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,9 @@ * RECENT CHANGES ******************************************************************************* +=== 1.0.11 === +* Fixed clang build error. + === 1.0.10 === * The library now uses FreeType for rendering custom fonts, avoiding cairo cache. * The library now requires to call ws::init() before proceeding with other operations. diff --git a/include/lsp-plug.in/ws/version.h b/include/lsp-plug.in/ws/version.h index 9b0adb2..f310eb3 100644 --- a/include/lsp-plug.in/ws/version.h +++ b/include/lsp-plug.in/ws/version.h @@ -24,7 +24,7 @@ #define LSP_WS_LIB_MAJOR 1 #define LSP_WS_LIB_MINOR 0 -#define LSP_WS_LIB_MICRO 10 +#define LSP_WS_LIB_MICRO 11 #if defined(LSP_WS_LIB_PUBLISHER) #define LSP_WS_LIB_PUBLIC LSP_EXPORT_MODIFIER diff --git a/project.mk b/project.mk index c644261..2d7a9e5 100644 --- a/project.mk +++ b/project.mk @@ -23,5 +23,5 @@ ARTIFACT_ID = LSP_WS_LIB ARTIFACT_NAME = lsp-ws-lib ARTIFACT_DESC = LSP window subsystem core library ARTIFACT_HEADERS = lsp-plug.in -ARTIFACT_VERSION = 1.0.10 +ARTIFACT_VERSION = 1.0.11 diff --git a/src/main/freetype/FontManger.cpp b/src/main/freetype/FontManger.cpp index 02c5b02..67713a3 100644 --- a/src/main/freetype/FontManger.cpp +++ b/src/main/freetype/FontManger.cpp @@ -699,7 +699,7 @@ namespace lsp lsp_wchar_t ch = text->char_at(first); glyph_t *glyph = get_glyph(face, ch); if (glyph == NULL) - return NULL; + return false; ssize_t x_bearing = glyph->x_bearing; ssize_t y_bearing = glyph->y_bearing; @@ -711,7 +711,7 @@ namespace lsp ch = text->char_at(i); glyph = get_glyph(face, ch); if (glyph == NULL) - return NULL; + return false; y_bearing = lsp_max(y_bearing, glyph->y_bearing); y_max = lsp_max(y_max, glyph->bitmap.height - glyph->y_bearing);