aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/gfx_state_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/gfx/gfx_state_internal.h')
-rw-r--r--engines/sci/gfx/gfx_state_internal.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/sci/gfx/gfx_state_internal.h b/engines/sci/gfx/gfx_state_internal.h
index 85c1eabe7a..9e4289be38 100644
--- a/engines/sci/gfx/gfx_state_internal.h
+++ b/engines/sci/gfx/gfx_state_internal.h
@@ -81,7 +81,6 @@ struct GfxVisual;
struct GfxPort;
typedef int gfxw_point_op(GfxWidget *, Common::Point);
-typedef int gfxw_op(GfxWidget *);
typedef int gfxw_bin_op(GfxWidget *, GfxWidget *);
struct GfxWidget {
@@ -123,8 +122,11 @@ public:
*
* If invoked on a container widget, this will also tag all of the container's
* contents (but not the contents' contents!)
+ * FIXME: Actually, the code in GfxContainer::tag contradicts the last claim!
*/
- gfxw_op *tag;
+ virtual void tag() {
+ _flags |= GFXW_FLAG_TAGGED;
+ }
/**
* Prints a string representation of the widget with sciprintf.
@@ -302,6 +304,7 @@ public:
GfxContainer(rect_t area, gfxw_widget_type_t type);
~GfxContainer();
+ virtual void tag();
virtual void print(int indentation) const;
virtual int setVisual(GfxVisual *);
};