Flip the origin of global map texture

Now it's consistent with the overlay texture.
This commit is contained in:
scrawl 2015-11-15 21:36:41 +01:00
parent 8b7bdcd127
commit 0f347eccbf
2 changed files with 2 additions and 2 deletions

View file

@ -746,7 +746,7 @@ namespace MWGui
mGlobalMapTexture.reset(new osgMyGUI::OSGTexture(mGlobalMapRender->getBaseTexture()));
mGlobalMapImage->setRenderItemTexture(mGlobalMapTexture.get());
mGlobalMapImage->getSubWidgetMain()->_setUVSet(MyGUI::FloatRect(0.f, 0.f, 1.f, 1.f));
mGlobalMapImage->getSubWidgetMain()->_setUVSet(MyGUI::FloatRect(0.f, 1.f, 1.f, 0.f));
mGlobalMapOverlayTexture.reset(new osgMyGUI::OSGTexture(mGlobalMapRender->getOverlayTexture()));
mGlobalMapOverlay->setRenderItemTexture(mGlobalMapOverlayTexture.get());

View file

@ -165,7 +165,7 @@ namespace MWRender
int vertexY = static_cast<int>(float(cellY) / float(mCellSize) * 9);
int texelX = (x-mMinX) * mCellSize + cellX;
int texelY = (mHeight-1) - ((y-mMinY) * mCellSize + cellY);
int texelY = (y-mMinY) * mCellSize + cellY;
unsigned char r,g,b;