Do not hardcode minimap size

This commit is contained in:
Marianne Gagnon 2014-06-23 19:34:29 -04:00
parent 4d6aa9d942
commit e9acaa8e4d
3 changed files with 5 additions and 3 deletions

View File

@ -361,7 +361,8 @@ void RaceGUI::drawGlobalMiniMap()
else if (new_rtt_mini_map != NULL)
{
core::rect<s32> source(0, 0, new_rtt_mini_map->getWidth(), new_rtt_mini_map->getHeight());
draw2DImageFromRTT(new_rtt_mini_map->getRTT()[0], 512, 512,
draw2DImageFromRTT(new_rtt_mini_map->getRTT()[0],
new_rtt_mini_map->getWidth(), new_rtt_mini_map->getHeight(),
dest, source, NULL, true);
}

View File

@ -338,7 +338,8 @@ void RaceGUIOverworld::drawGlobalMiniMap()
else if (new_rtt_mini_map != NULL)
{
core::rect<s32> source(0, 0, new_rtt_mini_map->getWidth(), new_rtt_mini_map->getHeight());
draw2DImageFromRTT(new_rtt_mini_map->getRTT()[0], 512, 512,
draw2DImageFromRTT(new_rtt_mini_map->getRTT()[0],
new_rtt_mini_map->getWidth(), new_rtt_mini_map->getHeight(),
dest, source, NULL, true);
}

View File

@ -985,7 +985,7 @@ void QuadGraph::makeMiniMap(const core::dimension2du &dimension,
IrrDriver::RTTProvider* oldRttProvider = NULL;
if (irr_driver->isGLSL())
{
newRttProvider = new RTT(512, 512);
newRttProvider = new RTT(dimension.Width, dimension.Height);
}
else
{