diff options
author | Vicent Marti | 2008-07-25 00:59:53 +0000 |
---|---|---|
committer | Vicent Marti | 2008-07-25 00:59:53 +0000 |
commit | 49b4df308ff7beb771531598c074535241e547ca (patch) | |
tree | 6440655dcbc9977ca99947430310351b24e1d159 /gui | |
parent | 7c562788968060e7fe764b9946384fa88cdd4de4 (diff) | |
download | scummvm-rg350-49b4df308ff7beb771531598c074535241e547ca.tar.gz scummvm-rg350-49b4df308ff7beb771531598c074535241e547ca.tar.bz2 scummvm-rg350-49b4df308ff7beb771531598c074535241e547ca.zip |
Fixed triangle drawing. A bit.
svn-id: r33268
Diffstat (limited to 'gui')
-rw-r--r-- | gui/ThemeDefaultXML.cpp | 4 | ||||
-rw-r--r-- | gui/ThemeRenderer.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gui/ThemeDefaultXML.cpp b/gui/ThemeDefaultXML.cpp index 64641b13a3..2e3c3b1270 100644 --- a/gui/ThemeDefaultXML.cpp +++ b/gui/ThemeDefaultXML.cpp @@ -79,12 +79,12 @@ bool ThemeRenderer::loadDefaultXML() { "<drawdata id = 'scrollbar_button_idle' cache = false>" "<drawstep func = 'roundedsq' radius = '4' fill = 'none' fg_color = '120, 120, 120' stroke = 1 />" - "<drawstep func = 'triangle' fg_color = '0, 0, 0' fill = 'foreground' width = '9' height = '7' xpos = 'center' ypos = 'center' orientation = 'top' />" + "<drawstep func = 'triangle' fg_color = '0, 0, 0' fill = 'foreground' width = 'auto' height = 'auto' xpos = 'center' ypos = 'center' orientation = 'top' />" "</drawdata>" "<drawdata id = 'scrollbar_button_hover' cache = false>" "<drawstep func = 'roundedsq' radius = '4' fill = 'background' fg_color = '120, 120, 120' bg_color = '206, 121, 99' stroke = 1 />" - "<drawstep func = 'triangle' fg_color = '0, 0, 0' fill = 'foreground' width = '9' height = '7' xpos = 'center' ypos = 'center' orientation = 'top' />" + "<drawstep func = 'triangle' fg_color = '0, 0, 0' fill = 'foreground' width = 'auto' height = 'auto' xpos = 'center' ypos = 'center' orientation = 'top' />" "</drawdata>" "<drawdata id = 'tab_active' cache = false>" diff --git a/gui/ThemeRenderer.cpp b/gui/ThemeRenderer.cpp index 52c4e895a6..403fecf12e 100644 --- a/gui/ThemeRenderer.cpp +++ b/gui/ThemeRenderer.cpp @@ -476,10 +476,10 @@ void ThemeRenderer::drawScrollbar(const Common::Rect &r, int sliderY, int slider const int buttonExtra = (r.width() * 120) / 100; r2.bottom = r2.top + buttonExtra; - queueDD(scrollState == kScrollbarStateUp ? kDDScrollbarButtonHover : kDDScrollbarButtonIdle, r2); + queueDD(scrollState == kScrollbarStateUp ? kDDScrollbarButtonHover : kDDScrollbarButtonIdle, r2, Graphics::VectorRenderer::kTriangleUp); r2.translate(0, r.height() - r2.height()); - queueDD(scrollState == kScrollbarStateDown ? kDDScrollbarButtonHover : kDDScrollbarButtonIdle, r2); + queueDD(scrollState == kScrollbarStateDown ? kDDScrollbarButtonHover : kDDScrollbarButtonIdle, r2, Graphics::VectorRenderer::kTriangleDown); r2 = r; r2.left += 1; |