Fixed several VS compilation problems.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3776 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2009-07-20 04:05:21 +00:00
parent eaae85de12
commit ba501eebdf
3 changed files with 14 additions and 3 deletions

View File

@ -15,11 +15,13 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "guiengine/abstract_state_manager.hpp"
#include "guiengine/event_handler.hpp"
#include "guiengine/abstract_state_manager.hpp"
#include "guiengine/engine.hpp"
#include "guiengine/modaldialog.hpp"
#include "guiengine/screen.hpp"
#include "guiengine/widget.hpp"
#include "input/input_manager.hpp"
using GUIEngine::EventHandler;
@ -136,7 +138,7 @@ bool EventHandler::onGUIEvent(const SEvent& event)
return false;
}
bool EventHandler::onWidgetActivated(Widget* w)
bool EventHandler::onWidgetActivated(GUIEngine::Widget* w)
{
if(ModalDialog::isADialogActive() && w->m_event_handler == NULL)
{

View File

@ -20,6 +20,10 @@
#include "io/file_manager.hpp"
using namespace GUIEngine;
#ifndef round
# define round(x) (floor(x+0.5f))
#endif
RibbonGridWidget::RibbonGridWidget(const bool combo, const int max_rows)
{
m_scroll_offset = 0;

View File

@ -15,12 +15,17 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "guiengine/widgets/ribbon_widget.hpp"
#include "guiengine/engine.hpp"
#include "guiengine/my_button.hpp"
#include "guiengine/widgets/ribbon_widget.hpp"
#include "io/file_manager.hpp"
using namespace GUIEngine;
#ifndef round
# define round(x) (floor(x+0.5f))
#endif
RibbonWidget::RibbonWidget(const RibbonType type)
{
m_selection = 0;