02-24-2011,05:19 PM
Code:
msgType mdialogprogress = MSGDIALOG_SINGLE_PROGRESSBAR;
happypercent = 0;
msgDialogOpen(mdialogprogress, "Recharging happiness batteries...", my_dialog, (void *) 0x33330001, NULL);
msgDialogProgressBarMessage(PROGRESSBAR_INDEX0, "You're Happy");
msgDialogResetProgressBar(PROGRESSBAR_INDEX0);
dialog_action = 0;
while(!dialog_action)
{
msgDialogIncProgressBar(PROGRESSBAR_INDEX0, happypercent);
sysCheckCallback();my_flip();
if(happypercent < 100) happypercent++;
usleep(100*1000);
}
msgDialogClose();
I think it's filling ok, it's just not sleeping right. There should be a delay, but there isn't. I'm sure this works fine, just way to fast to see it. I'm wondering what's causing the issue.
Never confuse heroism with simple self interest.
You must first be illusioned, before you can be disillusioned.
Hope is the first step on the road to disappointment.
Winning Lotto Numbers: 6 14 16 22 28 (56)