X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fnlsop.git;a=blobdiff_plain;f=dfbapi.h;h=0e325ca5e20878fcb67840116549e4ea26a470b0;hp=e5333cb037553b7f0f6ab06fe2754467d22981fa;hb=cff0722b1d71b922fde2de222ece99e0b26a5524;hpb=5a71cbde820d64c0bca211edcdc0b6af4498e727 diff --git a/dfbapi.h b/dfbapi.h index e5333cb..0e325ca 100644 --- a/dfbapi.h +++ b/dfbapi.h @@ -17,7 +17,11 @@ #define X_GAP 5 #define Y_GAP X_GAP #define RED 1 -#define MAX_EXTRA 20 + +#ifndef _U32 +#define _U32 +typedef unsigned int u32; +#endif typedef struct __d2_lattice { @@ -47,6 +51,7 @@ typedef struct __d3_lattice int s_height,s_width; int fakt_x,fakt_y; int info_x,info_y; + int o_x; int info_w,info_h; int font_h; unsigned char *status; /* status&1 -> red, else blue */ @@ -66,13 +71,13 @@ typedef struct __d3_lattice /* function prototypes */ int d2_lattice_init(int *argc,char **argv,d2_lattice *d2_l); int d2_lattice_release(d2_lattice *d2_l); -int d2_lattice_draw(d2_lattice *d2_l,int x,int y,int arg_c,char **arg_v,unsigned char mode); +int d2_lattice_draw(d2_lattice *d2_l,int x,int y,int arg_c,char **arg_v,unsigned char mode,int max_extra); int d3_lattice_init(int *argc,char **argv,d3_lattice *d3_l); int d3_lattice_release(d3_lattice *d3_l); -int d3_lattice_draw(d3_lattice *d3_l,int x,int y,int z,int arg_c,char **arg_v,unsigned char mode); +int d3_lattice_draw(d3_lattice *d3_l,int x,int y,int z,int arg_c,char **arg_v,unsigned char mode,int max_extra,u32 *p1,u32 max1,u32 *p2,u32 max2); int d2_event_init(d2_lattice *d2_l); int d3_event_init(d3_lattice *d3_l); -int scan_event(d3_lattice *d3_l,int *x,int *y,int *z,int *q,int *esc,int *switchmode); +int scan_event(d3_lattice *d3_l,int *x,int *y,int *z,int *q,int *esc,int *switchmode,int *bmp,int *ac_distr); int dx_lattice_get_color(unsigned char *status,unsigned char *r,unsigned char *g,unsigned char *b,unsigned char mode); #endif /* DFBAPI_H */