diff options
Diffstat (limited to 'src/subway_map.cpp')
-rw-r--r-- | src/subway_map.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/subway_map.cpp b/src/subway_map.cpp index 51f17c5..47ebfdf 100644 --- a/src/subway_map.cpp +++ b/src/subway_map.cpp | |||
@@ -1,6 +1,7 @@ | |||
1 | #include "subway_map.h" | 1 | #include "subway_map.h" |
2 | 2 | ||
3 | #include <wx/dcbuffer.h> | 3 | #include <wx/dcbuffer.h> |
4 | #include <wx/dcgraph.h> | ||
4 | 5 | ||
5 | #include <sstream> | 6 | #include <sstream> |
6 | 7 | ||
@@ -185,8 +186,10 @@ void SubwayMap::OnPaint(wxPaintEvent &event) { | |||
185 | GetSize().GetHeight() * map_image_.GetWidth() / render_width_ / zoom_; | 186 | GetSize().GetHeight() * map_image_.GetWidth() / render_width_ / zoom_; |
186 | } | 187 | } |
187 | 188 | ||
188 | dc.StretchBlit(dst_x, dst_y, dst_w, dst_h, &rendered_dc, src_x, src_y, | 189 | wxGCDC gcdc(dc); |
189 | src_w, src_h); | 190 | gcdc.GetGraphicsContext()->SetInterpolationQuality(wxINTERPOLATION_GOOD); |
191 | gcdc.StretchBlit(dst_x, dst_y, dst_w, dst_h, &rendered_dc, src_x, src_y, | ||
192 | src_w, src_h); | ||
190 | } | 193 | } |
191 | 194 | ||
192 | if (hovered_item_) { | 195 | if (hovered_item_) { |