diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-19 11:26:24 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-19 11:26:24 -0400 |
commit | e50107d0339000c48a955caab8b56d0d4fc56e84 (patch) | |
tree | e54447892a1fe6c2138c97d395b2defda37fb62e /src/subway_map.cpp | |
parent | 8980bf2a124f647dbdece9f90b86b2f37c4f3fa5 (diff) | |
download | lingo-ap-tracker-e50107d0339000c48a955caab8b56d0d4fc56e84.tar.gz lingo-ap-tracker-e50107d0339000c48a955caab8b56d0d4fc56e84.tar.bz2 lingo-ap-tracker-e50107d0339000c48a955caab8b56d0d4fc56e84.zip |
Higher quality while still fast
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_) { |