Skip to content

Commit

Permalink
Release 1.0.11
Browse files Browse the repository at this point in the history
* Fixed clang build error.
  • Loading branch information
sadko4u committed May 21, 2023
2 parents 3e13091 + f8f0085 commit 9ddf847
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion include/lsp-plug.in/ws/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion project.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 2 additions & 2 deletions src/main/freetype/FontManger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 9ddf847

Please sign in to comment.