Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 616:d632a1e87018 qt5
Build fixes for Qt5
author | Chris Cannam |
---|---|
date | Mon, 11 Mar 2013 14:23:52 +0000 |
parents | 0dba6a391760 |
children | 1a0dfcbffaf1 |
comparison
equal
deleted
inserted
replaced
615:156a120345ae | 616:d632a1e87018 |
---|---|
2291 } | 2291 } |
2292 usePeaksCache = (increment * 8) < zoomLevel; | 2292 usePeaksCache = (increment * 8) < zoomLevel; |
2293 if (m_colourScale == PhaseColourScale) usePeaksCache = false; | 2293 if (m_colourScale == PhaseColourScale) usePeaksCache = false; |
2294 } | 2294 } |
2295 | 2295 |
2296 m_drawBuffer.setNumColors(256); | 2296 // No longer exists in Qt5: m_drawBuffer.setNumColors(256); |
2297 for (int pixel = 0; pixel < 256; ++pixel) { | 2297 for (int pixel = 0; pixel < 256; ++pixel) { |
2298 m_drawBuffer.setColor(pixel, m_palette.getColour(pixel).rgb()); | 2298 m_drawBuffer.setColor(pixel, m_palette.getColour(pixel).rgb()); |
2299 } | 2299 } |
2300 | 2300 |
2301 m_drawBuffer.fill(0); | 2301 m_drawBuffer.fill(0); |