Fixed VS compilation.

This commit is contained in:
hiker 2014-07-07 16:54:25 +10:00
parent cab0b2d833
commit 5611f1544d
2 changed files with 9 additions and 5 deletions

View File

@ -44,8 +44,11 @@ using GUIEngine::PROP_ID;
typedef GUIEngine::LabelWidget Label; typedef GUIEngine::LabelWidget Label;
GPInfoDialog::GPInfoDialog(const std::string& gp_ident) : const float GPInfoDialog::PERCENT_WIDTH = 0.8f;
ModalDialog(PERCENT_WIDTH, PERCENT_HEIGHT) const float GPInfoDialog::PERCENT_HEIGHT = 0.7f;
GPInfoDialog::GPInfoDialog(const std::string& gp_ident)
: ModalDialog(PERCENT_WIDTH, PERCENT_HEIGHT)
{ {
doInit(); doInit();
m_curr_time = 0.0f; m_curr_time = 0.0f;

View File

@ -62,10 +62,11 @@ protected: // Necessary for RandomGPInfoDialog
/** only used for track_screen.cpp */ /** only used for track_screen.cpp */
GPInfoDialog() : ModalDialog(PERCENT_WIDTH, PERCENT_HEIGHT) {} GPInfoDialog() : ModalDialog(PERCENT_WIDTH, PERCENT_HEIGHT) {}
public: private:
static const float PERCENT_WIDTH = 0.8f; static const float PERCENT_WIDTH;
static const float PERCENT_HEIGHT = 0.7f; static const float PERCENT_HEIGHT;
public:
GPInfoDialog(const std::string& gpIdent); GPInfoDialog(const std::string& gpIdent);
/** Places the focus back on the selected GP, in the case that the dialog /** Places the focus back on the selected GP, in the case that the dialog
* was cancelled and we're returning to the track selection screen */ * was cancelled and we're returning to the track selection screen */