From 5c9aa34fe5f9e9c8df8afda66a231e359dc797e3 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Mon, 10 Sep 2007 20:06:33 +0000 Subject: Fixed minimap coordinates and improved look. --- ChangeLog | 1 + src/gui/minimap.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4f822e23..059a806f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ support for True Type Fonts. * po/it.po, po/LINGUAS, po/pl.po: Added Polish translation and fixed Italian one. + * src/gui/minimap.cpp: Fixed minimap coordinates and improved look. 2007-09-08 Guillaume Melquiond diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 89e7eadd..a8e9dafd 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -83,12 +83,12 @@ void Minimap::draw(gcn::Graphics *graphics) for (bi = beings.begin(); bi != beings.end(); bi++) { Being *being = (*bi); - int dotSize = 1; + int dotSize = 2; switch (being->getType()) { case Being::LOCALPLAYER: dotSize = 3; - graphics->setColor(gcn::Color(209, 52, 61)); + graphics->setColor(gcn::Color(61, 209, 52)); break; case Being::PLAYER: @@ -106,8 +106,8 @@ void Minimap::draw(gcn::Graphics *graphics) int offset = (dotSize - 1) / 2; graphics->fillRectangle(gcn::Rectangle( - being->mX / 2 + getPadding() - offset, - being->mY / 2 + getTitleBarHeight() - offset, + being->mX / 64 + getPadding() - offset, + being->mY / 64 + getTitleBarHeight() - offset, dotSize, dotSize)); } } -- cgit v1.2.3-70-g09d2