diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-04-08 18:21:26 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-04-08 18:21:26 +0200 |
| commit | 9bfec2ec1e77fb11c22db306d0b21639f50d053d (patch) | |
| tree | c9ebbacc704da65ac4cd7a10aaffa65b939b8e86 /panel | |
| parent | b78de25f8fb3e5c8c5030bb712b5d9a578fa6983 (diff) | |
PanelView: repeat a 1-px wide texture, instead of building a bigger one
(bzr r3279.3.7)
Diffstat (limited to 'panel')
| -rw-r--r-- | panel/PanelView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/panel/PanelView.cpp b/panel/PanelView.cpp index c7dc9dbd6..f638bbf70 100644 --- a/panel/PanelView.cpp +++ b/panel/PanelView.cpp @@ -513,10 +513,10 @@ PanelView::UpdateBackground() opacity = 1.0f; } - auto tex = panel::Style::Instance().GetBackground(geo.width, geo.height, opacity); + auto tex = panel::Style::Instance().GetBackground(1, geo.height, opacity); nux::TexCoordXForm texxform; texxform.SetTexCoordType(nux::TexCoordXForm::OFFSET_COORD); - texxform.SetWrap(nux::TEXWRAP_REPEAT, nux::TEXWRAP_REPEAT); + texxform.SetWrap(nux::TEXWRAP_REPEAT, nux::TEXWRAP_CLAMP); bg_layer_.reset(new nux::TextureLayer(tex->GetDeviceTexture(), texxform, nux::color::White, true, rop)); |
