> So, attached is a patch
Where did that go?
Trying again. I'm using webmail here -- it does claim to handle
attachments, but I'm not sure I've used the feature before in this
particular interface.
Chris
Index: gui/compositionview.cpp
===================================================================
RCS file: /cvsroot/rosegarden/gui/compositionview.cpp,v
retrieving revision 1.122
diff -r1.122 compositionview.cpp
736c736
< static const int TileWidth;
---
> static int tileWidth();
769c769
< int pixWidth = std::min(m_rect.width(), TileWidth);
---
> int pixWidth = std::min(m_rect.width(), tileWidth());
777c777,782
< const int AudioPreviewPainter::TileWidth = 30000;
---
> int AudioPreviewPainter::tileWidth()
> {
> static int tw = -1;
> if (tw == -1) tw = QApplication::desktop()->width();
> return tw;
> }
865c870
< int rectX = i % TileWidth;
---
> int rectX = i % tileWidth();
879c884
< if (((i+1) % TileWidth) == 0 || i == (m_rect.width() - 1)) {
---
> if (((i+1) % tileWidth()) == 0 || i == (m_rect.width() - 1)) {
905c910
< // RG_DEBUG << "AudioPreviewPainter::finalizeCurrentSlice : copying pixmap to image at " << m_sliceNb * TileWidth << endl;
---
> // RG_DEBUG << "AudioPreviewPainter::finalizeCurrentSlice : copying pixmap to image at " << m_sliceNb * tileWidth() << endl;
2197c2202
< int firstPixmapIdx = (r.x() - basePoint.x()) / AudioPreviewPainter::TileWidth;
---
> int firstPixmapIdx = (r.x() - basePoint.x()) / AudioPreviewPainter::tileWidth();
2208c2213
< int pixmapRectXOffset = idx * AudioPreviewPainter::TileWidth;
---
> int pixmapRectXOffset = idx * AudioPreviewPainter::tileWidth();
2210c2215
< AudioPreviewPainter::TileWidth, api->rect.height());
---
> AudioPreviewPainter::tileWidth(), api->rect.height());
2228c2233
< // basePoint.setX(basePoint.x() + AudioPreviewPainter::TileWidth);
---
> // basePoint.setX(basePoint.x() + AudioPreviewPainter::tileWidth());