Fixed other glitch (track dialog)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4296 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
6c53227c56
commit
1690b0fedf
@ -193,14 +193,15 @@ TrackInfoDialog::TrackInfoDialog(const std::string& trackIdent, const irr::core:
|
|||||||
screenshotWidget->y = area_right.UpperLeftCorner.Y;
|
screenshotWidget->y = area_right.UpperLeftCorner.Y;
|
||||||
screenshotWidget->w = area_right.getWidth();
|
screenshotWidget->w = area_right.getWidth();
|
||||||
screenshotWidget->h = area_right.getHeight();
|
screenshotWidget->h = area_right.getHeight();
|
||||||
|
std::cout << screenshotWidget->x << ", " << screenshotWidget->y << " : " << screenshotWidget->w << ", " << screenshotWidget->h << std::endl;
|
||||||
screenshotWidget->m_properties[PROP_ICON] = "gui/main_help.png"; // temporary icon, will replace it just after
|
screenshotWidget->m_properties[PROP_ICON] = "gui/main_help.png"; // temporary icon, will replace it just after
|
||||||
|
|
||||||
//screenshotWidget->setScaleImage(true);
|
//screenshotWidget->setScaleImage(true);
|
||||||
//screenshotWidget->setTabStop(false);
|
//screenshotWidget->setTabStop(false);
|
||||||
screenshotWidget->setParent(m_irrlicht_window);
|
screenshotWidget->setParent(m_irrlicht_window);
|
||||||
screenshotWidget->add();
|
screenshotWidget->add();
|
||||||
//screenshotWidget->setImage(screenshot);
|
screenshotWidget->setImage(screenshot);
|
||||||
|
m_children.push_back(screenshotWidget);
|
||||||
|
|
||||||
a->setTextAlignment(EGUIA_CENTER, EGUIA_CENTER);
|
a->setTextAlignment(EGUIA_CENTER, EGUIA_CENTER);
|
||||||
b->setTextAlignment(EGUIA_CENTER, EGUIA_CENTER);
|
b->setTextAlignment(EGUIA_CENTER, EGUIA_CENTER);
|
||||||
|
Loading…
Reference in New Issue
Block a user