/* ----------------------------------------------------------------------------- GSFramework Copyright 2001-2013 Emmanuel Julien. All Rights Reserved. ----------------------------------------------------------------------------- */ #include "widget_bitmap.h" using namespace GS::S2D; //------------------------------------------------------------------------------ void BitmapWidget::SetPicture(GS::Picture *p) { if (picture != p) { picture = p; Invalidate(); } } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ BitmapWidget::BitmapWidget(int id, GS::Picture *p) : DrawableWidget(id) { SetPicture(p); type = WidgetTypeBitmap; } //------------------------------------------------------------------------------