diff options
author | deva <deva> | 2006-03-07 10:37:59 +0000 |
---|---|---|
committer | deva <deva> | 2006-03-07 10:37:59 +0000 |
commit | 1390ddfe6afe41dba141f8170f9b277573ebe8cd (patch) | |
tree | fd6861f3eab3a4721f2445540279a8223d7cd1a3 /client/videowidget.cc | |
parent | 19ade36987f86c9b4cd4c5ec3fc6c499205c61ec (diff) |
*** empty log message ***
Diffstat (limited to 'client/videowidget.cc')
-rw-r--r-- | client/videowidget.cc | 9 |
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); } } |