diff options
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r-- | src/graphics.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp index b3f3050e..6f488cc1 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -28,6 +28,15 @@ #include <guichan/exception.hpp> +void ImageRect::setAlpha(float alpha) +{ + for (auto img : grid) + { + img->setAlpha(alpha); + } +} + + Graphics::~Graphics() { _endDraw(); |