diff options
author | Hugues Ross <hugues.ross@gmail.com> | 2020-08-29 11:41:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-29 16:41:19 +0100 |
commit | 9976f36b18b8d227e3240feb24000dda0916ee44 (patch) | |
tree | 253d3c39dba2a95137b392937287dd7d1dafdc57 /src/client | |
parent | 3693b6871eba268ecc79b3f52d00d3cefe761131 (diff) | |
download | minetest-9976f36b18b8d227e3240feb24000dda0916ee44.tar.gz minetest-9976f36b18b8d227e3240feb24000dda0916ee44.tar.bz2 minetest-9976f36b18b8d227e3240feb24000dda0916ee44.zip |
Make bgcolor tint button background images (#9818)
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/guiscalingfilter.cpp | 5 | ||||
-rw-r--r-- | src/client/guiscalingfilter.h | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/client/guiscalingfilter.cpp b/src/client/guiscalingfilter.cpp index 4262331bd..406c096e6 100644 --- a/src/client/guiscalingfilter.cpp +++ b/src/client/guiscalingfilter.cpp @@ -172,11 +172,8 @@ void draw2DImageFilterScaled(video::IVideoDriver *driver, video::ITexture *txr, void draw2DImage9Slice(video::IVideoDriver *driver, video::ITexture *texture, const core::rect<s32> &rect, const core::rect<s32> &middle, - const core::rect<s32> *cliprect) + const core::rect<s32> *cliprect, const video::SColor *const colors) { - const video::SColor color(255,255,255,255); - const video::SColor colors[] = {color,color,color,color}; - auto originalSize = texture->getOriginalSize(); core::vector2di lowerRightOffset = core::vector2di(originalSize.Width, originalSize.Height) - middle.LowerRightCorner; diff --git a/src/client/guiscalingfilter.h b/src/client/guiscalingfilter.h index b703d91f0..379a4bdb0 100644 --- a/src/client/guiscalingfilter.h +++ b/src/client/guiscalingfilter.h @@ -54,4 +54,5 @@ void draw2DImageFilterScaled(video::IVideoDriver *driver, video::ITexture *txr, */ void draw2DImage9Slice(video::IVideoDriver *driver, video::ITexture *texture, const core::rect<s32> &rect, const core::rect<s32> &middle, - const core::rect<s32> *cliprect = nullptr); + const core::rect<s32> *cliprect = nullptr, + const video::SColor *const colors = nullptr); |