]> git.sesse.net Git - nageru/blobdiff - analyzer.cpp
Make the sublabel under the grabbed frame a bit more dynamic.
[nageru] / analyzer.cpp
index 08de86fd535a520376a4413ebed0b3a38a236336..578d17a78498aa6c87aa2590b0a8726a8c7fb139 100644 (file)
@@ -61,7 +61,7 @@ Analyzer::~Analyzer()
                resource_pool->clean_context();
        }
        delete_context(context);
-       delete surface;  // TODO?
+       delete surface;
 }
 
 void Analyzer::grab_clicked()
@@ -115,6 +115,12 @@ void Analyzer::grab_clicked()
                memcpy(grabbed_image.scanLine(global_flags.height - y - 1), buf + y * pitch, pitch);
        }
 
+       {
+               char buf[256];
+               snprintf(buf, sizeof(buf), "Grabbed frame (%dx%d)", global_flags.width, global_flags.height);
+               ui->grabbed_frame_sublabel->setText(buf);
+       }
+
        QPixmap pixmap;
        pixmap.convertFromImage(grabbed_image);
        ui->grabbed_frame_label->setPixmap(pixmap);