Skip to content

Commit

Permalink
Updated to use new WindowAdatper::updateExtens(..) method
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Sep 23, 2021
1 parent 6a34c84 commit 751c05e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/vsgQt/ViewerWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ void ViewerWindow::resizeEvent(QResizeEvent* e)
// std::cout << __func__ << std::endl;

// WindowAdapter
windowAdapter->extent2D().width = e->size().width();
windowAdapter->extent2D().height = e->size().height();
windowAdapter->windowResized = true;
windowAdapter->updateExtents(e->size().width(), e->size().height());

vsg::clock::time_point event_time = vsg::clock::now();
windowAdapter->bufferedEvents.emplace_back(new vsg::ConfigureWindowEvent(windowAdapter, event_time, x(), y(), static_cast<uint32_t>(e->size().width()), static_cast<uint32_t>(e->size().height())));
Expand Down

0 comments on commit 751c05e

Please sign in to comment.