mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-20 22:41:36 +00:00
Hook up autofit right-click shortcut, to always autofit
This commit is contained in:
@@ -2682,8 +2682,8 @@ void TextureViewer::OnEventChanged(uint32_t eventId)
|
||||
|
||||
INVOKE_MEMFN(RT_UpdateAndDisplay);
|
||||
|
||||
// if(autoFit.Checked)
|
||||
// AutoFitRange();
|
||||
if(ui->autoFit->isChecked())
|
||||
AutoFitRange();
|
||||
}
|
||||
|
||||
QVariant TextureViewer::persistData()
|
||||
@@ -2993,6 +2993,12 @@ void TextureViewer::on_autoFit_clicked()
|
||||
AutoFitRange();
|
||||
}
|
||||
|
||||
void TextureViewer::on_autoFit_mouseClicked(QMouseEvent *e)
|
||||
{
|
||||
if(e->buttons() & Qt::RightButton)
|
||||
ui->autoFit->toggle();
|
||||
}
|
||||
|
||||
void TextureViewer::on_reset01_clicked()
|
||||
{
|
||||
UI_SetHistogramRange(GetCurrentTexture(), m_TexDisplay.typeHint);
|
||||
|
||||
Reference in New Issue
Block a user