mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
Fix tab bars being drawn at the wrong scale
This commit is contained in:
parent
e717c00603
commit
84d2b560e0
1 changed files with 3 additions and 2 deletions
|
@ -301,12 +301,13 @@ void Hy3TabGroup::renderTabBar() {
|
|||
}
|
||||
|
||||
auto render_entry = [&](Hy3TabBarEntry& entry) {
|
||||
entry.prepareTexture(scale, size);
|
||||
Vector2D entry_size = { (entry.width.fl() * size.x) - *padding, size.y };
|
||||
entry.prepareTexture(scale, entry_size);
|
||||
|
||||
wlr_box box = {
|
||||
(pos.x + (entry.offset.fl() * size.x) + (*padding * 0.5)) * scale,
|
||||
scaled_pos.y,
|
||||
((entry.width.fl() * size.x) - *padding) * scale,
|
||||
entry_size.x * scale,
|
||||
scaled_size.y,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue