Skip to content

Commit

Permalink
[v0.5.9] Flip Text::Align::eLeft and Text::Align::eRight.
Browse files Browse the repository at this point in the history
  • Loading branch information
karnkaul committed Jul 5, 2024
1 parent e63a22c commit eeec084
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

set(project_prefix bave)
project(${project_prefix} VERSION 0.5.8)
project(${project_prefix} VERSION 0.5.9)

set(is_root_project FALSE)

Expand Down
4 changes: 4 additions & 0 deletions lib/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## v0.5

### v0.5.9

- Flip bave::Text::Align::eLeft and bave::Text::Align::eRight.

### v0.5.8

- Updated capo-lite to include crash bugfix.
Expand Down
6 changes: 2 additions & 4 deletions lib/src/graphics/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ void Text::refresh() {

auto const n_offset = [&] {
switch (m_align) {
// NOLINTNEXTLINE
case Align::eLeft: return -0.5f;
// NOLINTNEXTLINE
case Align::eRight: return +0.5f;
case Align::eLeft: return +0.5f;
case Align::eRight: return -0.5f;
default: return 0.0f;
}
}();
Expand Down

0 comments on commit eeec084

Please sign in to comment.