mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-25 07:56:33 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user