/* $Id$ */
#include "../stdafx.h"
#include <stdarg.h>
#include "../openttd.h"
#include "../debug.h"
#include "../functions.h"
#include "../map.h"
#include "../player.h"
#include "../window.h"
#include "../gfx.h"
#include "../viewport.h"
#include "../console.h"
#include "../variables.h"
#include "../table/sprites.h"
#include "../genworld.h"
#include "../helpers.hpp"
#include "window_events.hpp"
#include "widget_types.h"
namespace gui {
/*virtual*/ void ImageButton::OnPaint(EvtPaint &e)
{
DrawBackground(e);
Point16 pos = m_sprite_offset + (m_pushed ? Point16(3, 3) : Point16(2, 2));
DrawSprite(m_sprite, PAL_NONE, pos);
}
} // namespace gui