forked from mirror/openmw-tes3mp
Flip the origin of global map texture
Now it's consistent with the overlay texture.
This commit is contained in:
parent
8b7bdcd127
commit
0f347eccbf
2 changed files with 2 additions and 2 deletions
|
@ -746,7 +746,7 @@ namespace MWGui
|
||||||
|
|
||||||
mGlobalMapTexture.reset(new osgMyGUI::OSGTexture(mGlobalMapRender->getBaseTexture()));
|
mGlobalMapTexture.reset(new osgMyGUI::OSGTexture(mGlobalMapRender->getBaseTexture()));
|
||||||
mGlobalMapImage->setRenderItemTexture(mGlobalMapTexture.get());
|
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()));
|
mGlobalMapOverlayTexture.reset(new osgMyGUI::OSGTexture(mGlobalMapRender->getOverlayTexture()));
|
||||||
mGlobalMapOverlay->setRenderItemTexture(mGlobalMapOverlayTexture.get());
|
mGlobalMapOverlay->setRenderItemTexture(mGlobalMapOverlayTexture.get());
|
||||||
|
|
|
@ -165,7 +165,7 @@ namespace MWRender
|
||||||
int vertexY = static_cast<int>(float(cellY) / float(mCellSize) * 9);
|
int vertexY = static_cast<int>(float(cellY) / float(mCellSize) * 9);
|
||||||
|
|
||||||
int texelX = (x-mMinX) * mCellSize + cellX;
|
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;
|
unsigned char r,g,b;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue