X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fx11.h;h=4f36b193e3dac2cc23de405226df28f8ebbe18d1;hb=ae32fd8a4316c5d7f18fe6966f999ebf5509df94;hp=f27907a74246db374d81fe7a5cacc5e50f507c5d;hpb=ff56a43aa3799aa3357f4deca4d6482fc25a6a41;p=rocksndiamonds.git diff --git a/src/libgame/x11.h b/src/libgame/x11.h index f27907a7..4f36b193 100644 --- a/src/libgame/x11.h +++ b/src/libgame/x11.h @@ -39,9 +39,10 @@ /* X11 type definitions */ -typedef struct X11DrawableInfo *Bitmap; -typedef struct X11DrawableInfo *DrawWindow; -typedef struct X11DrawableInfo *DrawBuffer; +typedef struct X11DrawableInfo Bitmap; +typedef struct X11DrawableInfo DrawWindow; +typedef struct X11DrawableInfo DrawBuffer; +/* "Pixel" is already defined in X11/Intrinsic.h */ typedef KeySym Key; @@ -61,10 +62,16 @@ struct X11DrawableInfo Drawable drawable; Drawable clip_mask; GC gc; /* GC for normal drawing (inheritated from 'window') */ + GC line_gc[2]; /* GC for foreground and background line drawing */ GC stored_clip_gc; /* GC for masked drawing (used for whole Pixmap) */ GC clip_gc; /* can be 'stored_clip_gc' or one-tile-only clip GC */ }; +struct XY +{ + short x, y; +}; + /* X11 symbol definitions */ @@ -280,6 +287,7 @@ struct X11DrawableInfo /* X11 function definitions */ inline void X11InitVideoDisplay(void); -inline void X11InitVideoBuffer(DrawBuffer *, DrawWindow *); +inline void X11InitVideoBuffer(DrawBuffer **, DrawWindow **); +Bitmap *X11LoadImage(char *); #endif /* X11_H */