Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1123 → Rev 1448

/demos/trunk/bca/fab_lib.c
18,7 → 18,7
* http://shark.sssup.it
*/
 
/* CVS : $Id: fab_lib.c,v 1.3 2003-01-07 17:10:16 pj Exp $ */
/* CVS : $Id: fab_lib.c,v 1.4 2004-05-23 08:59:27 giacomo Exp $ */
 
/*
* Copyright (C) 2000 Fabio Calabrese <fabiocalabrese77@yahoo.it>
55,8 → 55,9
// *** Librerie di S.Ha.R.K. ***
#include<kernel/kern.h>
#include<kernel/mem.h>
#include<drivers/gd.h>
#include<drivers/glib.h>
 
#include<drivers/shark_fb26.h>
 
#include<ll/sys/types.h>
#include<ll/i386/x-dos.h>
// *** Librerie Standard C ***
197,27 → 198,6
 
return image;
}
int FAB_grx_open(WORD lx, WORD ly)
{ int modenum;
 
FAB_print("VIDEO",NULL);
if (grx_init()==-1) {
FAB_print(NULL,"ERRORE nell'inizializzazione!");
return -1;
}
if((modenum = grx_getmode(lx, ly, FAB_BPP))==-1) {
FAB_print(NULL,"Modalita' NON supportata!");
return -1;
}
if(grx_setmode(modenum)==-1) {
FAB_print(NULL,"ERRORE nell'apertura della modalita'video");
return -1;
}
return 0;
}
void FAB_grx_close()
{ grx_close();
}
int FAB_image_load(FAB_IMAGE* image, char* file_name)
{
DOS_FILE* file;