diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-02-27 08:11:16 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-02-27 08:11:16 +0100 |
| commit | e8df89377f7cd2bcbce7bd7110cd83cb75c4c0b2 (patch) | |
| tree | bb0ed26da71e5fd4fe67243aeb0e66e416d0e3d2 /plugins | |
| parent | 40cc4b5573c71b1797773f032f12f41ddedc2701 (diff) | |
DecorationsWindowButton: use scaled Window Button textures, enjoy the visual quality!
Well, better with SVGs ;) (bzr r3680.1.81)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index c4f8c57db..6eee23136 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -3926,7 +3926,7 @@ void UnityWindow::paintFakeDecoration(nux::Geometry const& geo, GLWindowPaintAtt if (window->actions() & CompWindowActionCloseMask) { using namespace decoration; - close_texture = DataPool::Get()->ButtonTexture(WindowButtonType::CLOSE, close_icon_state_); + close_texture = DataPool::Get()->ButtonTexture(dpi_scale, WindowButtonType::CLOSE, close_icon_state_); } if (redraw_decoration) @@ -3954,13 +3954,13 @@ void UnityWindow::paintFakeDecoration(nux::Geometry const& geo, GLWindowPaintAtt if (close_texture) { - int w = close_texture->width() * dpi_scale; - int h = close_texture->height() * dpi_scale; + int w = close_texture->width(); + int h = close_texture->height(); int x = geo.x + padding.left * dpi_scale; int y = geo.y + padding.top * dpi_scale + (height - w) / 2.0f; close_button_geo_.Set(x, y, w, h); - DrawTexture(*close_texture, attrib, transform, mask, x, y, dpi_scale); + DrawTexture(*close_texture, attrib, transform, mask, x, y); } else { |
