summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-09-26 19:21:58 +0200
committerStanislaw Halik <sthalik@misaki.pl>2021-09-26 21:10:13 +0200
commit29fdf6f4a701b8642edd1958584e717b7ed523f3 (patch)
treee6bd9ec76f0e0e7483ab0190dacf3d50f92e013a /tracker-pt
parentcf1261d2e4c21d3b63f05f708e51ebee53b45be7 (diff)
tracker/pt: don't recreate widget ignoring hidpi
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp
index 64fd6fd5..4dc9abda 100644
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -110,13 +110,6 @@ void Tracker_PT::run()
preview_frame->draw_head_center((p[0] * fx) / p[2], (p[1] * fx) / p[2]);
widget->update_image(preview_frame->get_bitmap());
-
- auto [ w, h ] = widget->preview_size();
- if (w != preview_width || h != preview_height)
- {
- preview_width = w; preview_height = h;
- preview_frame = traits->make_preview(w, h);
- }
}
}
}