mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 03:22:07 +08:00
CameraView: fix possible crash on 'fit in widget' mode (#22594)
old-commit-hash: 5735d69d47a1de021e2949b192ffdda7a9144aab
This commit is contained in:
@@ -194,7 +194,7 @@ void CameraViewWidget::updateFrameMat(int w, int h) {
|
||||
}};
|
||||
frame_mat = matmul(device_transform, frame_transform);
|
||||
}
|
||||
} else {
|
||||
} else if (vipc_client->connected) {
|
||||
// fit frame to widget size
|
||||
float w = (float)width() / height();
|
||||
float f = (float)vipc_client->buffers[0].width / vipc_client->buffers[0].height;
|
||||
|
||||
Reference in New Issue
Block a user