aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.h
diff options
context:
space:
mode:
authorJohannes Schickel2012-06-13 04:44:39 +0200
committerJohannes Schickel2012-06-13 04:48:34 +0200
commitcebbc11dac77d30fac3be4cc0ebdc6bc059636ef (patch)
treed303f485c89eabbb7a49ba3c1183eeb6996f2573 /gui/widget.h
parentd5eb3e3c06a1f396f578b21c4a3aaff3519513a5 (diff)
downloadscummvm-rg350-cebbc11dac77d30fac3be4cc0ebdc6bc059636ef.tar.gz
scummvm-rg350-cebbc11dac77d30fac3be4cc0ebdc6bc059636ef.tar.bz2
scummvm-rg350-cebbc11dac77d30fac3be4cc0ebdc6bc059636ef.zip
GUI: Allow Surfaces with abitrary RGB pixel formats to be used in PicButtonWidget and GraphicsWidget.
Only 1Bpp aka paletted surfaces are not supported.
Diffstat (limited to 'gui/widget.h')
-rw-r--r--gui/widget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/widget.h b/gui/widget.h
index 6a6c67ced9..6de56862c3 100644
--- a/gui/widget.h
+++ b/gui/widget.h
@@ -227,7 +227,7 @@ public:
protected:
void drawWidget();
- Graphics::Surface _gfx;
+ Graphics::Surface *_gfx;
int _alpha;
bool _transparency;
};
@@ -355,7 +355,7 @@ public:
protected:
void drawWidget();
- Graphics::Surface _gfx;
+ Graphics::Surface *_gfx;
int _alpha;
bool _transparency;
};