Mercurial > audlegacy-plugins
changeset 2403:3528a910a034
Implement frame limiting.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Mon, 18 Feb 2008 00:15:40 -0600 |
parents | ace0b59f541a |
children | e909987593f2 |
files | src/projectm-1.0/main.cxx |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/projectm-1.0/main.cxx Mon Feb 18 00:09:38 2008 -0600 +++ b/src/projectm-1.0/main.cxx Mon Feb 18 00:15:40 2008 -0600 @@ -115,11 +115,9 @@ gtk_widget_show(this->drawing_area); gtk_widget_show(this->window); - this->idle_id = g_idle_add_full (GDK_PRIORITY_REDRAW, - (GSourceFunc) projectM_idle_func, - this->drawing_area, - NULL); - + this->idle_id = g_timeout_add (1000 / 30, + (GSourceFunc) projectM_idle_func, + this->drawing_area); /* XXX */ aud_hook_associate("playback begin", handle_playback_trigger, NULL);