Only draw in expose callback in RS01/RS02/RS03 windows
This commit is contained in:
committed by
Stéphane Lesimple
parent
fb7198c1e9
commit
923fe44e4a
@@ -144,7 +144,7 @@ void CreateRS03EncWindow(Method *method, GtkWidget *parent)
|
||||
static gboolean set_max_idle_func(gpointer data)
|
||||
{ RS03Widgets *wl = (RS03Widgets*)data;
|
||||
|
||||
redraw_curve(wl);
|
||||
gtk_widget_queue_draw(wl->fixCurve->widget);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
@@ -269,9 +269,7 @@ void ResetRS03FixWindow(Method *method)
|
||||
RS03UpdateFixResults(wl, 0, 0);
|
||||
|
||||
if(wl->fixCurve && wl->fixCurve->widget)
|
||||
{ gdk_window_clear(gtk_widget_get_window(wl->fixCurve->widget));
|
||||
redraw_curve(wl);
|
||||
}
|
||||
gtk_widget_queue_draw(wl->fixCurve->widget);
|
||||
|
||||
wl->percent = 0;
|
||||
wl->lastPercent = 0;
|
||||
|
||||
Reference in New Issue
Block a user