This is an automated email from the git hooks/post-receive script. odyx pushed a commit to branch debian/master in repository colobot.
commit c6c01c332fd2a60beea1c6179af065c2007ed852 Author: Piotr Dziwinski <[email protected]> Date: Fri Apr 8 21:23:11 2016 +1200 Fix displaying of text highlights (#738) --- src/graphics/engine/text.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/graphics/engine/text.cpp b/src/graphics/engine/text.cpp index 0af5723..4fcf4ac 100644 --- a/src/graphics/engine/text.cpp +++ b/src/graphics/engine/text.cpp @@ -885,27 +885,23 @@ void CText::DrawHighlight(FontHighlight hl, Math::IntPoint pos, Math::IntPoint s Math::Point p1, p2; p1.x = pos.x; + p1.y = pos.y - size.y; p2.x = pos.x + size.x; + p2.y = pos.y; if (hl == FONT_HIGHLIGHT_LINK) { - p1.y = pos.y; - p2.y = pos.y + h; // just emphasized - } - else - { - p1.y = pos.y; - p2.y = pos.y + size.y; + p1.y = pos.y - h; // just emphasized } m_device->SetTextureEnabled(0, false); VertexCol quad[] = { - VertexCol(Math::Vector(p1.x, p1.y, 0.0f), grad[3]), - VertexCol(Math::Vector(p1.x, p2.y, 0.0f), grad[0]), - VertexCol(Math::Vector(p2.x, p1.y, 0.0f), grad[2]), - VertexCol(Math::Vector(p2.x, p2.y, 0.0f), grad[1]) + VertexCol(Math::Vector(p1.x, p2.y, 0.0f), grad[3]), + VertexCol(Math::Vector(p1.x, p1.y, 0.0f), grad[0]), + VertexCol(Math::Vector(p2.x, p2.y, 0.0f), grad[2]), + VertexCol(Math::Vector(p2.x, p1.y, 0.0f), grad[1]) }; m_engine->SetWindowCoordinates(); -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

