Skip to content
Snippets Groups Projects
Commit 5a9c19b2 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

Merge branch 'master' of gitlab.utu.fi:nicolas.pope/ftl

parents a695fa87 8faeaf2f
No related branches found
No related tags found
No related merge requests found
Pipeline #12193 passed
......@@ -338,7 +338,7 @@ void ftl::gui::Screen::draw(NVGcontext *ctx) {
mImageID = camera_->captureFrame().texture();
if (imageSize[0] > 0) {
if (mImageID < std::numeric_limits<unsigned int>::max() && imageSize[0] > 0) {
auto mScale = (screenSize.cwiseQuotient(imageSize).minCoeff());
Vector2f scaleFactor = mScale * imageSize.cwiseQuotient(screenSize);
Vector2f positionInScreen(0.0f, 0.0f);
......
......@@ -194,7 +194,7 @@ void MiddleburySource::_performDisparity() {
}
bool MiddleburySource::grab(int n, int b) {
_performDisparity();
//_performDisparity();
return true;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment