Make zoom in/out always display content

This commit is contained in:
Miodrag Milanovic 2018-11-12 10:05:46 +01:00
parent cf27b3f8d2
commit 7bd542ecbe

View File

@ -286,7 +286,7 @@ QMatrix4x4 FPGAViewWidget::getProjection(void)
QMatrix4x4 matrix; QMatrix4x4 matrix;
const float aspect = float(width()) / float(height()); const float aspect = float(width()) / float(height());
matrix.perspective(90, aspect, zoomNear_, zoomFar_ + 0.1f); matrix.perspective(90, aspect, zoomNear_ - 0.01f, zoomFar_ + 0.01f);
return matrix; return matrix;
} }