aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRendererSpec.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2014-05-07 13:12:59 +0300
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit38114eb760f842eb3145c9d1af62366cf2fab8ca (patch)
tree2e28e23339ebd0184a3e8a3807906ddc00c95fe2 /graphics/VectorRendererSpec.cpp
parentec7312ac13ce19f64b2b453b43e2c37235dcbe7a (diff)
downloadscummvm-rg350-38114eb760f842eb3145c9d1af62366cf2fab8ca.tar.gz
scummvm-rg350-38114eb760f842eb3145c9d1af62366cf2fab8ca.tar.bz2
scummvm-rg350-38114eb760f842eb3145c9d1af62366cf2fab8ca.zip
GUI: Plug NinePatch bitmaps into parser
Diffstat (limited to 'graphics/VectorRendererSpec.cpp')
-rw-r--r--graphics/VectorRendererSpec.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index 68b77d20ee..f3e496af70 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -26,6 +26,7 @@
#include "graphics/surface.h"
#include "graphics/transparent_surface.h"
+#include "graphics/nine_patch.h"
#include "graphics/colormasks.h"
#include "gui/ThemeEngine.h"
@@ -902,6 +903,9 @@ blitAlphaBitmap(Graphics::TransparentSurface *source, const Common::Rect &r, Gra
nullptr, TS_ARGB(255, 255, 255, 255),
(int)(source->w * ratio), (int)(source->h * ratio));
+ } else if (autoscale == Graphics::DrawStep::kAutoScaleNinePatch) {
+ Graphics::NinePatchBitmap nine(source, false);
+ nine.blit(*_activeSurface, r.left, r.top, r.width(), r.height());
} else {
source->blit(*_activeSurface, r.left, r.top);
}