Do not hardcode minimap size
This commit is contained in:
parent
4d6aa9d942
commit
e9acaa8e4d
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user