summaryrefslogtreecommitdiff
path: root/client/videowidget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/videowidget.cc')
-rw-r--r--client/videowidget.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/client/videowidget.cc b/client/videowidget.cc
index a2d5a14..8f733d5 100644
--- a/client/videowidget.cc
+++ b/client/videowidget.cc
@@ -32,9 +32,8 @@
#include "miav_config.h"
-VideoWidget::VideoWidget(QWidget *p, Camera *c, QWidget* old) : QWidget(p)
+VideoWidget::VideoWidget(QWidget *p, QWidget* old) : QWidget(p)
{
- camera = c;
parent = p;
oldWindow = old;
@@ -60,16 +59,16 @@ void VideoWidget::mouseReleaseEvent(QMouseEvent *event)
if(!parent) { // We are a fullscreen window
QString ids;
setenv("SDL_WINDOWID", ids.setNum(oldWindow->winId()).toStdString().c_str(), 1);
- camera->resize(oldWindow->width(), oldWindow->height(), false);
+ // camera->resize(oldWindow->width(), oldWindow->height(), false);
destroy();
} else { // We are a nested window
// first delete old instance (if any)
if(fs) delete fs;
- fs = new VideoWidget(NULL, camera, this);
+ fs = new VideoWidget(NULL, this);
fs->showFullScreen();
fs->setFixedWidth(config->readInt("pixel_width"));
fs->setFixedHeight(config->readInt("pixel_height"));
- camera->resize(fs->width(), fs->height(), true);
+ //camera->resize(fs->width(), fs->height(), true);
}
}