equal
deleted
inserted
replaced
213 void Widget::DrawFrameRect(int ctab, FrameFlags flags) |
213 void Widget::DrawFrameRect(int ctab, FrameFlags flags) |
214 { |
214 { |
215 DrawFrameRect(Left(), Top(), Right(), Bottom(), ctab, flags); |
215 DrawFrameRect(Left(), Top(), Right(), Bottom(), ctab, flags); |
216 } |
216 } |
217 |
217 |
|
218 void Widget::DrawSprite(SpriteID img, SpriteID pal, const Point16 &local_pos) |
|
219 { |
|
220 Point16 window_space_pos = TopLeft() + local_pos; |
|
221 ::DrawSprite(img, pal, window_space_pos.x, window_space_pos.y); |
|
222 } |
|
223 |
|
224 |
218 /*virtual*/ BaseWindow* Widget::GetWindow() |
225 /*virtual*/ BaseWindow* Widget::GetWindow() |
219 { |
226 { |
220 if (m_container != NULL) { |
227 if (m_container != NULL) { |
221 return m_container->GetWindow(); |
228 return m_container->GetWindow(); |
222 } |
229 } |