Fix handling for a couple of cases where we need device pixel co-ords

* When interacting with the C++ UI we have to use device pixels, so
  multiply/divide by the device pixel ratio.
This commit is contained in:
baldurk
2017-06-19 16:17:20 +01:00
parent b87cf00c86
commit ac885b1882
3 changed files with 28 additions and 12 deletions
+2
View File
@@ -2384,6 +2384,8 @@ void BufferViewer::render_clicked(QMouseEvent *e)
QPoint curpos = e->pos();
curpos *= ui->render->devicePixelRatioF();
if((e->buttons() & Qt::RightButton) && m_Output)
{
m_Ctx.Replay().AsyncInvoke(lit("PickVertex"), [this, curpos](IReplayController *r) {