X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=analyzer.cpp;fp=analyzer.cpp;h=578d17a78498aa6c87aa2590b0a8726a8c7fb139;hb=b621e521934002462061b80ccf3b83867497abb6;hp=08de86fd535a520376a4413ebed0b3a38a236336;hpb=24577b82d09f6784c3db3a6c7ba124aaa3582c4d;p=nageru diff --git a/analyzer.cpp b/analyzer.cpp index 08de86f..578d17a 100644 --- a/analyzer.cpp +++ b/analyzer.cpp @@ -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);