aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/VectorRenderer.h5
-rw-r--r--gui/ThemeDefaultXML.cpp4
-rw-r--r--gui/ThemeRenderer.cpp3
3 files changed, 12 insertions, 0 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h
index d6b315d2b3..08c8a8435d 100644
--- a/graphics/VectorRenderer.h
+++ b/graphics/VectorRenderer.h
@@ -535,8 +535,13 @@ public:
* @see VectorRenderer::copyFrame()
*/
virtual void copyFrame(OSystem *sys, const Common::Rect &r) {
+#ifdef OVERLAY_MULTIPLE_DEPTHS
+ sys->copyRectToOverlay((const PixelType*)_activeSurface->getBasePtr(r.left, r.top),
+ _activeSurface->w, r.left, r.top, r.width(), r.height());
+#else
sys->copyRectToOverlay((const OverlayColor*)_activeSurface->getBasePtr(r.left, r.top),
_activeSurface->w, r.left, r.top, r.width(), r.height());
+#endif
}
virtual void copyWholeFrame(OSystem *sys) {
diff --git a/gui/ThemeDefaultXML.cpp b/gui/ThemeDefaultXML.cpp
index 11ef1b58b0..182535a9c6 100644
--- a/gui/ThemeDefaultXML.cpp
+++ b/gui/ThemeDefaultXML.cpp
@@ -51,6 +51,10 @@ bool ThemeRenderer::loadDefaultXML() {
"</drawdata>"
"<drawdata id = 'button_idle' cache = false>"
+ "<drawstep func = 'roundedsq' radius = '8' stroke = 0 fill = 'gradient' gradient_start = '206, 121, 99' gradient_end = '173, 40, 8' size = 'auto' shadow = 3 />"
+ "</drawdata>"
+
+ "<drawdata id = 'button_hover' cache = false>"
"<drawstep func = 'roundedsq' radius = '8' fill = 'gradient' gradient_start = '206, 121, 99' gradient_end = '173, 40, 8' size = 'auto' shadow = 3 />"
"</drawdata>"
"</render_info>"
diff --git a/gui/ThemeRenderer.cpp b/gui/ThemeRenderer.cpp
index d17698c9c1..281c02f8f4 100644
--- a/gui/ThemeRenderer.cpp
+++ b/gui/ThemeRenderer.cpp
@@ -196,6 +196,9 @@ bool ThemeRenderer::addDrawData(DrawData data_id, bool cached) {
bool ThemeRenderer::loadTheme(Common::String themeName) {
unloadTheme();
+ if (themeName == "builtin" && !loadDefaultXML())
+ error("Could not load default embeded theme.");
+
if (!loadThemeXML(themeName)) {
warning("Could not parse custom theme '%s'.\nFalling back to default theme", themeName.c_str());