Make zoom in/out always display content
This commit is contained in:
parent
cf27b3f8d2
commit
7bd542ecbe
@ -286,7 +286,7 @@ QMatrix4x4 FPGAViewWidget::getProjection(void)
|
||||
QMatrix4x4 matrix;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user