From b41d4f0ee0ac2a3fc9f13e58b52fb45d87ce526c Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 10 May 2017 19:39:52 +0200 Subject: [PATCH] Fix the initial histogram display. --- analyzer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/analyzer.cpp b/analyzer.cpp index 391bf4d..2d76223 100644 --- a/analyzer.cpp +++ b/analyzer.cpp @@ -63,6 +63,10 @@ Analyzer::Analyzer() glGenBuffers(1, &pbo); glBindBuffer(GL_PIXEL_PACK_BUFFER_ARB, pbo); glBufferData(GL_PIXEL_PACK_BUFFER_ARB, global_flags.width * global_flags.height * 4, NULL, GL_STREAM_READ); + + ui->histogram->xAxis->setVisible(true); + ui->histogram->yAxis->setVisible(false); + ui->histogram->xAxis->setRange(0, 255); } Analyzer::~Analyzer() -- 2.39.2