[PlanetCCRMA] updated: hydrogen on fc3/4

Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU
Tue Oct 4 13:05:01 2005


--=-/G9+vWxJCEGD99N6FYQR
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Tue, 2005-10-04 at 10:07 -0400, Hector Centeno wrote:
> Fernando Lopez-Lezcano wrote:
> 
> >A new release of Hydrogen is available on fc3/4, thanks to Alessandro
> >Cominu for the patch that has fixed the "gui soaks up all cpu" when the
> >SongEditor window is open. The new release is hydrogen 0.9.2-2...
>
> I've just build hydrogen 0.9.2 using agnula and I got the same "gui 
> soaks up all cpu" problem. Could you tell me where did you get this 
> patch from? I couldn't find any reference to it in the hydrogen's web 
> site and I would like to build a fixed debian version.

I'm attaching the patch... Alessandro Cominu fixed this and sent the
patch to the hydrogen developers list and copied me. 

-- Fernando


--=-/G9+vWxJCEGD99N6FYQR
Content-Disposition: attachment; filename=hydrogen-0.9.2-songeditor.patch
Content-Type: text/x-patch; name=hydrogen-0.9.2-songeditor.patch; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

--- hydrogen-0.9.2/src/gui/SongEditor/SongEditor.cpp.~1.44.~	2005-07-11 14:15:11.000000000 -0700
+++ hydrogen-0.9.2/src/gui/SongEditor/SongEditor.cpp	2005-08-11 12:04:19.903352480 -0700
@@ -1087,7 +1087,10 @@
 
 
 
-SongEditorPositionRuler::SongEditorPositionRuler( QWidget *parent ) : QWidget( parent ), Object( "SongEditPosRuler" )
+SongEditorPositionRuler::SongEditorPositionRuler( QWidget *parent )
+ : QWidget( parent , "SongEditorPositionRuler", Qt::WRepaintNoErase | Qt::WResizeNoErase )
+ , Object( "SongEditPosRuler" )
+
 {
 	m_bChanged = true;
 	this->resize( m_nInitialWidth, m_nHeight );
@@ -1214,14 +1217,14 @@
 
 	if (m_bChanged) {
 		m_bChanged = false;
-		bitBlt( &m_tempPixmap, 0, 0, &m_backgroundPixmap, 0, 0, m_nInitialWidth, m_nHeight, CopyROP );
+                bitBlt( this, 0, 0, &m_backgroundPixmap, 0, 0, m_nInitialWidth, m_nHeight, CopyROP );
 
 		if (fPos != -1) {
 			uint x = 10 + fPos * SONG_EDITOR_GRID_WIDTH - 11 / 2;
-			bitBlt( &m_tempPixmap, x, height() / 2, &m_tickPositionPixmap, 0, 0, 11, 8, CopyROP );
+                        bitBlt( this, x, height() / 2, &m_tickPositionPixmap, 0, 0, 11, 8, CopyROP );
 		}
 
-		setErasePixmap( m_tempPixmap );
+		// setErasePixmap( m_tempPixmap );
 	}
 }
 

--=-/G9+vWxJCEGD99N6FYQR--