summaryrefslogtreecommitdiff
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
authordeva <deva>2005-05-01 12:17:41 +0000
committerdeva <deva>2005-05-01 12:17:41 +0000
commit2c8088f2b146c0665d730006a91addb117092391 (patch)
tree4086a6b2c67f04b743bf840800709cfbb12dd7f3 /src/mainwindow.cc
parent4248e1b3a9791983c33ca8ce65839d1c882dfeb0 (diff)
*** empty log message ***
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r--src/mainwindow.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index dc81ae2..1fd7b4a 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -27,6 +27,9 @@
*/
/*
* $Log$
+ * Revision 1.20 2005/05/01 12:17:41 deva
+ * *** empty log message ***
+ *
* Revision 1.19 2005/05/01 12:13:50 deva
* Removed bitmap readin.
*
@@ -339,12 +342,12 @@ void MainWindow::rec_clicked()
void MainWindow::shoot_clicked()
{
- unsigned char pixels[720*576*3];
+ // unsigned char pixels[720*576*3];
- camera->snapshot(pixels);
- checkErrors();
+ QImage image(720, 576, 32);
- QImage image(pixels, 720, 576, 32, 0, 720*576, QImage::LittleEndian);
+ camera->snapshot(image.bits());
+ checkErrors();
image = image.smoothScale(img_history[0]->width(), img_history[0]->height());