1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fixed visibility of corner gems

This commit is contained in:
Ivan Savenko
2023-04-26 18:12:18 +03:00
parent a015bf6507
commit 4958190e82
6 changed files with 143 additions and 69 deletions

View File

@@ -128,9 +128,9 @@ void CFilledTexture::showAll(SDL_Surface *to)
{
CSDL_Ext::CClipRectGuard guard(to, pos);
for (int y=pos.top(); y < pos.bottom(); y+= texture->height())
for (int y=pos.top(); y < pos.bottom(); y+= imageArea.h)
{
for (int x=pos.left(); x < pos.right(); x+=texture->width())
for (int x=pos.left(); x < pos.right(); x+= imageArea.w)
texture->draw(to, x, y, &imageArea);
}
}