summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2005-07-25 15:35:41 +0000
committerdeva <deva>2005-07-25 15:35:41 +0000
commit8c381fe44a179b4b84ecc50e810980f7af9a0f58 (patch)
treee28e41e1615e7ae88cf3658ce5a159534b9617b9
parent3551a0a021d3e2ad4e4063602648da333510aef8 (diff)
*** empty log message ***
-rw-r--r--src/mainwindow.cc4
-rw-r--r--src/videowidget.cc17
2 files changed, 19 insertions, 2 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index c540767..b73e133 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -31,6 +31,9 @@
/*
* $Log$
+ * Revision 1.41 2005/07/25 15:35:41 deva
+ * *** empty log message ***
+ *
* Revision 1.40 2005/07/25 14:27:14 deva
* *** empty log message ***
*
@@ -191,6 +194,7 @@ MainWindow::MainWindow(QApplication *qApp, QWidget* parent, const char* name )
// Open the CPR Dialog
cpr_clicked();
+
}
MainWindow::~MainWindow()
diff --git a/src/videowidget.cc b/src/videowidget.cc
index 859763d..2aa7ba9 100644
--- a/src/videowidget.cc
+++ b/src/videowidget.cc
@@ -31,6 +31,9 @@
/*
* $Log$
+ * Revision 1.5 2005/07/25 15:40:07 deva
+ * *** empty log message ***
+ *
* Revision 1.4 2005/07/25 15:35:41 deva
* *** empty log message ***
*
@@ -67,11 +70,17 @@ QPixmap VideoWidget::getScreenshot()
void VideoWidget::mousePressEvent(QMouseEvent *event)
{
+ QString ids;
+
if(isFullScreen()) {
printf("Going normal\n");
- reparent(parent, 0, QPoint(0,0), FALSE);
+ setenv("SDL_WINDOWID", ids.setNum(0), 1);
+
+ reparent(parent, 0, QPoint(10,10), FALSE);
+
+ setenv("SDL_WINDOWID", ids.setNum(winId()), 1);
showNormal();
@@ -79,7 +88,11 @@ void VideoWidget::mousePressEvent(QMouseEvent *event)
printf("Going fullscreen\n");
- reparent(NULL, 0, QPoint(10,10), FALSE);
+ setenv("SDL_WINDOWID", ids.setNum(0), 1);
+
+ reparent(NULL, 0, QPoint(0,0), FALSE);
+
+ setenv("SDL_WINDOWID", ids.setNum(winId()), 1);
showFullScreen();