mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-14 18:55:58 +01:00
Fixed bar module width
This commit is contained in:
parent
ba47d7950f
commit
3fc3a138ba
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ int CStatusBar::getTextWidth(std::string text, std::string font, double size) {
|
|||
cairo_text_extents_t textextents;
|
||||
cairo_text_extents(m_pCairo, text.c_str(), &textextents);
|
||||
|
||||
return textextents.width + 1 /* pad */;
|
||||
return textextents.x_advance;
|
||||
}
|
||||
|
||||
void CStatusBar::drawText(Vector2D pos, std::string text, uint32_t color, std::string font, double size) {
|
||||
|
|
Loading…
Reference in a new issue