mirror of
https://github.com/hyprwm/hyprgraphics.git
synced 2025-12-20 06:20:02 +01:00
text: recalc layout after setting limits
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
This commit is contained in:
parent
72e6801f08
commit
32e6b8386f
1 changed files with 2 additions and 0 deletions
|
|
@ -74,6 +74,8 @@ void CTextResource::render() {
|
||||||
pango_layout_set_height(layout, layoutHeight);
|
pango_layout_set_height(layout, layoutHeight);
|
||||||
if (m_data.wrap)
|
if (m_data.wrap)
|
||||||
pango_layout_set_wrap(layout, PANGO_WRAP_WORD_CHAR);
|
pango_layout_set_wrap(layout, PANGO_WRAP_WORD_CHAR);
|
||||||
|
|
||||||
|
pango_layout_get_size(layout, &layoutWidth, &layoutHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: avoid this?
|
// TODO: avoid this?
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue