From: Steinar H. Gunderson Date: Wed, 10 May 2017 17:39:52 +0000 (+0200) Subject: Fix the initial histogram display. X-Git-Tag: 1.6.0~30 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b41d4f0ee0ac2a3fc9f13e58b52fb45d87ce526c;p=nageru Fix the initial histogram display. --- 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()