denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Denemo-devel] SOC branch display refresh


From: Richard Shann
Subject: [Denemo-devel] SOC branch display refresh
Date: Fri, 30 Sep 2011 09:27:49 +0100

I was looking over the soc code yesterday and it seemed to me that the
call to displayhelper() may not be right. I wanted to try the following,
but both my previously built version of the soc branch and the one with
the modification (below) is misbehaving. It puts about four notes in
when I enter a single note and a infinite stream of MIDI messages come
out on the terminal.

playing midi event: port=0, channel=0, type=9, data1=69, data2=127

But, for the record, what I thought might be right is this:

 git diff
diff --git a/src/audiointerface.c b/src/audiointerface.c
index cc8d5ba..9e1674d 100644
--- a/src/audiointerface.c
+++ b/src/audiointerface.c
@@ -244,7 +244,8 @@ int audio_shutdown() {
 
 static gboolean redraw_all_callback(gpointer data) {
   gdk_threads_enter();
-  displayhelper(Denemo.gui);
+  //displayhelper(Denemo.gui);
+  gtk_widget_queue_draw(Denemo.scorearea);
   gdk_threads_leave();
   return FALSE;
 }

Richard





reply via email to

[Prev in Thread] Current Thread [Next in Thread]