mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-12-25 18:59:48 +01:00
commit
3e3d943c44
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_t textextents;
|
||||||
cairo_text_extents(m_pCairo, text.c_str(), &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) {
|
void CStatusBar::drawText(Vector2D pos, std::string text, uint32_t color, std::string font, double size) {
|
||||||
|
|
Loading…
Reference in a new issue