From 2e8428900b5e47a168e68d214ca133f4451e6249 Mon Sep 17 00:00:00 2001 From: Ellen Dekkers Date: Fri, 17 Dec 2010 14:46:02 +0000 Subject: [PATCH] Set correct offsets when resizing the viewer (Verified: resizing the viewer to its current size does not change anything) git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10467 383ad7c9-94d9-4d36-a494-682f7c89f535 --- Core/Core.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Core/Core.cc b/Core/Core.cc index acaa58ed..3fdba94e 100644 --- a/Core/Core.cc +++ b/Core/Core.cc @@ -1278,9 +1278,7 @@ void Core::resizeViewers(int _width, int _height ){ lastWidth_ = coreWidget_->glView_->width(); lastHeight_ = coreWidget_->glView_->height(); - - //+4,+20 to to get the correct dimension when using snapshotFunction -// coreWidget_->glView_->resize(_width+4, _height+20); + // offset +6, +6: Verified: resizing with current sizes leads to no effect coreWidget_->glView_->resize(_width+6, _height+6); } } -- GitLab