try make drawing work better but its busted

This commit is contained in:
Dana Jansens 2002-11-15 02:38:52 +00:00
parent b3822fcfb1
commit b7dba88a0a
3 changed files with 10 additions and 3 deletions

View file

@ -65,4 +65,10 @@ void OtkButton::update(void)
OtkFocusWidget::update(); OtkFocusWidget::update();
} }
void OtkButton::expose(const XExposeEvent &e)
{
_dirty = true;
OtkFocusWidget::expose(e);
}
} }

View file

@ -33,14 +33,15 @@ public:
void press(void); void press(void);
void release(void); void release(void);
void update(void); virtual void update(void);
virtual void expose(const XExposeEvent &e);
private: private:
std::string _text; std::string _text;
//OtkPixmap _pixmap; //OtkPixmap _pixmap;
bool _pressed; bool _pressed;
// bool _dirty; bool _dirty;
BTexture *_pressed_focus_tx; BTexture *_pressed_focus_tx;
BTexture *_pressed_unfocus_tx; BTexture *_pressed_unfocus_tx;

View file

@ -27,7 +27,7 @@ public:
virtual void update(void); virtual void update(void);
void expose(const XExposeEvent &e); virtual void expose(const XExposeEvent &e);
inline Window getWindow(void) const { return _window; } inline Window getWindow(void) const { return _window; }
inline const OtkWidget *getParent(void) const { return _parent; } inline const OtkWidget *getParent(void) const { return _parent; }