X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=display%2Fdisplay.h;h=d8bd5460fd36b75aa6b5af1f5b06d29d5afd59b1;hb=b75390faa6d63ccc1a940bbe5db66141c8e0a1a0;hp=29cf6c962403b5781c43b55d8615b82760d4b1c2;hpb=24edc387e6e88c32c6142f397ee891746eed62e3;p=my-code%2Fapi.git diff --git a/display/display.h b/display/display.h index 29cf6c9..d8bd546 100644 --- a/display/display.h +++ b/display/display.h @@ -1,6 +1,7 @@ /* display.h -- display headers */ /* includes */ +#define _GNU_SOURCE #include #include #include @@ -20,13 +21,14 @@ /* display specific variables */ typedef struct s_display { + int outfd; int max_x; int max_y; - unsigned char *screen; + char *screen; } t_display; /* function prototypes */ -int display_init(t_display *display); +int display_init(t_display *display,int outfd); int display_draw(t_display *display); int display_draw_until_line(t_display *display,int line); int display_set_cursor(t_display *display,int x,int y); @@ -35,3 +37,4 @@ int display_shutdown(t_display *display); int display_line(t_display *display,int X,int Y,int X_,int Y_,char sym); int display_string(t_display *display,int x,int y,char *string,int len); int display_string_vert(t_display *display,int x,int y,char *string,int len); +