comparison layer/SpectrogramLayer.cpp @ 556:eabefd562995 sv-v1.7.2

* Quick workarounds for some very weird behaviour on first test on Ubuntu 10.04
author Chris Cannam
date Wed, 05 May 2010 14:45:32 +0000
parents 0ce7566717b2
children 9fc13f61ae74
comparison
equal deleted inserted replaced
555:3f698e237585 556:eabefd562995
2364 if (recreateWholeImageCache) { 2364 if (recreateWholeImageCache) {
2365 #ifdef DEBUG_SPECTROGRAM_REPAINT 2365 #ifdef DEBUG_SPECTROGRAM_REPAINT
2366 std::cerr << "Recreating image cache: width = " << v->width() 2366 std::cerr << "Recreating image cache: width = " << v->width()
2367 << ", height = " << h << std::endl; 2367 << ", height = " << h << std::endl;
2368 #endif 2368 #endif
2369 cache.image = QImage(v->width(), h, QImage::Format_RGB32); 2369 cache.image = QImage(v->width(), h, QImage::Format_ARGB32_Premultiplied);
2370 } 2370 }
2371 2371
2372 if (w > 0) { 2372 if (w > 0) {
2373 #ifdef DEBUG_SPECTROGRAM_REPAINT 2373 #ifdef DEBUG_SPECTROGRAM_REPAINT
2374 std::cerr << "Painting " << w << "x" << h 2374 std::cerr << "Painting " << w << "x" << h