Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1625 → Rev 1650

/advdemos/trunk/mesaref/mesaref.c
87,7 → 87,7
FILE *fp = fopen(file_name, "rb");
if (!fp) {
cprintf("[read_png_file] File %s could not be opened for reading\n", file_name);
sys_end();
exit(1);
}
fread(header, 1, 8, fp);
214,7 → 214,7
ImgFormat = GL_RGB;
else {
cprintf("Texture Load Falied !!\n");
sys_end();
exit(1);
}
make_table();
378,12 → 378,12
/* graphic card Initialization */
if (grx_init() < 1) {
sys_abort(1);
exit(1);
}
if (grx_open(640, 480, 16) < 0) {
cprintf("GRX Err\n");
sys_abort(1);
exit(1);
}
video_buf = (unsigned char *)flbaddr;
400,7 → 400,7
 
grx_close();
 
sys_end();
exit(1);
 
}
 
407,7 → 407,7
void program_key_end(KEY_EVT *k)
{
 
sys_end();
exit(1);
 
}
 
421,7 → 421,7
 
}
 
sys_end();
exit(1);
 
}
 
451,7 → 451,7
 
}
 
sys_end();
exit(1);
 
}
 
474,7 → 474,6
 
refresh_PID = task_create("refresh", refresh, &ht_refresh, NULL);
if (refresh_PID == -1) {
sys_end();
exit(4);
}
 
488,7 → 487,6
disegna_PID = task_create("disegna", disegna, &ht_disegna, NULL);
if (disegna_PID == -1) {
sys_end();
exit(4);
}
 
506,7 → 504,7
if (screen()) {
printk(KERN_INFO "Graphical initialization failed !!\n");
sys_end();
exit(1);
}
 
group_activate(1);
/advdemos/trunk/mesaref/initfile.c
36,11 → 36,11
*/
 
/*
* CVS : $Id: initfile.c,v 1.1.1.1 2004-05-24 17:54:50 giacomo Exp $
* CVS : $Id: initfile.c,v 1.2 2005-01-08 15:14:32 pj Exp $
*
* File: $File$
* Revision: $Revision: 1.1.1.1 $
* Last update: $Date: 2004-05-24 17:54:50 $
* Revision: $Revision: 1.2 $
* Last update: $Date: 2005-01-08 15:14:32 $
*/
 
#include "kernel/kern.h"
112,7 → 112,7
root_device=bdev_scan_devices(choose_root_callback);
if (root_device<0) {
cprintf("can't find root device to mount on /!!!\n");
sys_end();
exit(1);
return -1;
}
 
/advdemos/trunk/mesaref/readme.txt
48,5 → 48,5
 
copy_videomem_16to16 links these buffers
 
- If the texture load fails, sys_end() is called
- If the texture load fails, exit(1) is called