mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Set bound on right arrow keypress to width
This commit is contained in:
committed by
Baldur Karlsson
parent
e2bb45fd8f
commit
f970d42c2c
@@ -2388,7 +2388,7 @@ void TextureViewer::render_keyPress(QKeyEvent *e)
|
||||
m_PickedPoint -= QPoint(increment, 0);
|
||||
nudged = true;
|
||||
}
|
||||
else if(e->key() == Qt::Key_Right && m_PickedPoint.x() < (int)texptr->height - 1)
|
||||
else if(e->key() == Qt::Key_Right && m_PickedPoint.x() < (int)texptr->width - 1)
|
||||
{
|
||||
m_PickedPoint += QPoint(increment, 0);
|
||||
nudged = true;
|
||||
|
||||
Reference in New Issue
Block a user