diff options
author | Vicent Marti | 2008-08-15 19:10:37 +0000 |
---|---|---|
committer | Vicent Marti | 2008-08-15 19:10:37 +0000 |
commit | 7c213ab11022ffce603099fe409d44d383ce94e7 (patch) | |
tree | d10f744f79d0cb0b2b0ef3a7ac986aeed06203c6 /gui/ThemeRenderer.cpp | |
parent | 9ae82653ef7586aa52fae0041b56dfd2415ea399 (diff) | |
download | scummvm-rg350-7c213ab11022ffce603099fe409d44d383ce94e7.tar.gz scummvm-rg350-7c213ab11022ffce603099fe409d44d383ce94e7.tar.bz2 scummvm-rg350-7c213ab11022ffce603099fe409d44d383ce94e7.zip |
Tons of misc. GFX fixes.
svn-id: r33911
Diffstat (limited to 'gui/ThemeRenderer.cpp')
-rw-r--r-- | gui/ThemeRenderer.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gui/ThemeRenderer.cpp b/gui/ThemeRenderer.cpp index 27409d8192..c24f8a6d50 100644 --- a/gui/ThemeRenderer.cpp +++ b/gui/ThemeRenderer.cpp @@ -29,6 +29,7 @@ #include "common/system.h" #include "common/events.h" #include "common/config-manager.h" +#include "common/fs.h" #include "graphics/imageman.h" #include "graphics/cursorman.h" #include "gui/launcher.h" @@ -461,7 +462,7 @@ bool ThemeRenderer::loadThemeXML(Common::String themeName) { if (parser()->loadStream(stream) == false || parser()->parse() == false) { warning("Failed to load stream for zipped file '%s'", fileNameBuffer); unzClose(zipFile); - delete stream; +// delete stream; return false; } } @@ -474,6 +475,9 @@ bool ThemeRenderer::loadThemeXML(Common::String themeName) { } } +// FilesystemNode dir(themeName); +// FSList files = dir.listDir(FilesystemNode::kListFilesOnly); + unzClose(zipFile); return (parseCount > 0 && _themeName.empty() == false); #else @@ -705,6 +709,9 @@ void ThemeRenderer::drawScrollbar(const Common::Rect &r, int sliderY, int slider r2.right -= 1; r2.top += sliderY; r2.bottom = r2.top + sliderHeight - 1; + + r2.top += r.width() / 5; + r2.bottom -= r.width() / 5; queueDD(scrollState == kScrollbarStateSlider ? kDDScrollbarHandleHover : kDDScrollbarHandleIdle, r2); } |