]> git.sesse.net Git - nageru/commitdiff
Fix the initial histogram display.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 10 May 2017 17:39:52 +0000 (19:39 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 10 May 2017 17:39:52 +0000 (19:39 +0200)
analyzer.cpp

index 391bf4de2e687bc7d592f5557a859e6f15f9250d..2d762236755c85128437ff0f261d01ac9b61790e 100644 (file)
@@ -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()