diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-03 15:48:29 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-13 07:02:53 +0200 |
commit | f128b1de42cf8b2d9b50f57561a205073b9e250d (patch) | |
tree | d5c26c724296e0deb7cc22886c521623b29db929 /tracker-wii | |
parent | 92e41fff15f58e7764f91004650b0e6b9c4e2f1e (diff) |
switch to structured bindings
Diffstat (limited to 'tracker-wii')
-rw-r--r-- | tracker-wii/wii_frame.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tracker-wii/wii_frame.cpp b/tracker-wii/wii_frame.cpp index 9332a704..92e7fd35 100644 --- a/tracker-wii/wii_frame.cpp +++ b/tracker-wii/wii_frame.cpp @@ -76,9 +76,7 @@ QImage WIIPreview::get_bitmap() void WIIPreview::draw_head_center(double x, double y) { - double px_, py_; - - std::tie(px_, py_) = to_pixel_pos(x, y, frame_copy.cols, frame_copy.rows); + auto [px_, py_] = to_pixel_pos(x, y, frame_copy.cols, frame_copy.rows); int px = iround(px_), py = iround(py_); |