(svn r25262) -Feature: linkgraph overlay for smallmap

This commit is contained in:
rubidium
2013-05-19 14:36:35 +00:00
parent 5bca50c466
commit 163dfdd34a
6 changed files with 164 additions and 12 deletions

View File

@@ -13,8 +13,8 @@
#include "../window_gui.h"
#include "../company_base.h"
#include "../date_func.h"
#include "linkgraph_gui.h"
#include "../viewport_func.h"
#include "../smallmap_gui.h"
/**
* Colours for the various "load" states of links. Ordered from "unused" to
@@ -262,10 +262,9 @@ void LinkGraphOverlay::DrawStationDots(const DrawPixelInfo *dpi) const
* @param st The station we're looking for.
* @return Middle point of the station in the current window.
*/
Point LinkGraphOverlay::GetStationMiddle(const Station *st) const {
Point dummy;
dummy.x = dummy.y = 0;
return dummy;
Point LinkGraphOverlay::GetStationMiddle(const Station *st) const
{
return static_cast<const SmallMapWindow *>(this->window)->GetStationMiddle(st);
}
/**