Subversion Repositories shark

Compare Revisions

Regard whitespace Rev 1116 → Rev 1117

/demos/trunk/fsdemo/mplay.c
36,11 → 36,11
*/
 
/*
* CVS : $Id: mplay.c,v 1.1.1.1 2002-09-02 09:37:41 pj Exp $
* CVS : $Id: mplay.c,v 1.2 2002-11-11 08:17:31 pj Exp $
*
* File: $File$
* Revision: $Revision: 1.1.1.1 $
* Last update: $Date: 2002-09-02 09:37:41 $
* Revision: $Revision: 1.2 $
* Last update: $Date: 2002-11-11 08:17:31 $
*/
 
#include "config.h"
66,6 → 66,7
 
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
 
#include "gclock.h"
#include "gvideo.h"
365,6 → 366,13
if (grp>0) group_activate(grp);
 
esc=0;
 
{
struct timespec delay;
 
delay.tv_sec = MAINSLEEP/1000000;
delay.tv_nsec = (MAINSLEEP%1000000)*1000;
 
while (!esc) {
if (keyb_getcode(&k,NON_BLOCK)) {
if(k.ascii==13) esc=1;
372,8 → 380,9
else if (k.ascii=='s') task_activate(ph2);
else if (k.ascii=='d') task_activate(ph3);
}
task_delay(MAINSLEEP);
nanosleep(&delay, NULL);
}
}
 
#ifndef NOGRX
grx_close();