~ubuntu-branches/ubuntu/trusty/manaplus/trusty

« back to all changes in this revision

Viewing changes to src/gui/ministatuswindow.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-10-07 10:26:14 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131007102614-tg2zjdz8vmtl6n7i
Tags: 1.3.9.29-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
214
214
    int icon_x = mMaxX + mIconPadding;
215
215
    for (size_t i = 0, sz = mIcons.size(); i < sz; i ++)
216
216
    {
217
 
        AnimatedSprite *const icon = mIcons[i];
 
217
        const AnimatedSprite *const icon = mIcons[i];
218
218
        if (icon)
219
219
        {
220
220
            icon->draw(graphics, icon_x, mIconPadding);
223
223
    }
224
224
}
225
225
 
226
 
void MiniStatusWindow::processEvent(Channels channel A_UNUSED,
 
226
void MiniStatusWindow::processEvent(const Channels channel A_UNUSED,
227
227
                                    const DepricatedEvent &event)
228
228
{
229
229
    if (event.getName() == EVENT_UPDATEATTRIBUTE)
411
411
 
412
412
    if (event.getButton() == gcn::MouseEvent::RIGHT)
413
413
    {
414
 
        ProgressBar *const bar = dynamic_cast<ProgressBar*>(event.getSource());
 
414
        const ProgressBar *const bar = dynamic_cast<ProgressBar*>(
 
415
            event.getSource());
415
416
        if (!bar)
416
417
            return;
417
418
        if (viewport)