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); |