From 163dfdd34afe8020a207b8f0a1b58e29ce082c41 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 19 May 2013 14:36:35 +0000 Subject: (svn r25262) -Feature: linkgraph overlay for smallmap --- src/linkgraph/linkgraph_gui.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/linkgraph') diff --git a/src/linkgraph/linkgraph_gui.cpp b/src/linkgraph/linkgraph_gui.cpp index a5ec1e878..152cb7a30 100644 --- a/src/linkgraph/linkgraph_gui.cpp +++ b/src/linkgraph/linkgraph_gui.cpp @@ -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(this->window)->GetStationMiddle(st); } /** -- cgit v1.2.3-54-g00ecf