X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Frender.h;h=e90b6fe6d60278fe26a36e6ad1654213c8e2ffc1;hb=356318b5621305c2124466fd60516459b1ffdb83;hp=56ec29f19fddc7b646f2db121296dfafd9005969;hpb=ce940eee0ff94403e2093dcce3866a764c6a75e7;p=chaz%2Fopenbox diff --git a/render/render.h b/render/render.h index 56ec29f1..e90b6fe6 100644 --- a/render/render.h +++ b/render/render.h @@ -2,6 +2,7 @@ #define __render_h #define _XFT_NO_COMPAT_ /* no Xft 1 API */ +#include /* some platforms dont include this as needed for Xft */ #include #include #include @@ -70,7 +71,7 @@ struct _RrSurface { RrAppearance *parent; gint parentx; gint parenty; - RrPixel32 *RrPixel_data; + RrPixel32 *pixel_data; }; struct _RrTextureText { @@ -127,19 +128,12 @@ struct _RrAppearance { gint w, h; }; -#if (G_BYTE_ORDER == G_BIG_ENDIAN) -#define RrDefaultAlphaOffset 0 -#define RrDefaultRedOffset 8 -#define RrDefaultGreenOffset 16 -#define RrDefaultBlueOffset 24 -#define RrEndian MSBFirst -#else +/* these are the same on all endian machines because it seems to be dependant + on the endianness of the gfx card, not the cpu. */ #define RrDefaultAlphaOffset 24 #define RrDefaultRedOffset 16 #define RrDefaultGreenOffset 8 #define RrDefaultBlueOffset 0 -#define RrEndian LSBFirst -#endif /* G_BYTE_ORDER == G_BIG_ENDIAN */ RrInstance* RrInstanceNew (Display *display, gint screen); void RrInstanceFree (RrInstance *inst); @@ -166,6 +160,11 @@ RrColor *RrColorNew (const RrInstance *inst, gint r, gint g, gint b); RrColor *RrColorParse (const RrInstance *inst, gchar *colorname); void RrColorFree (RrColor *in); +gint RrColorRed (const RrColor *c); +gint RrColorGreen (const RrColor *c); +gint RrColorBlue (const RrColor *c); +gulong RrColorPixel (const RrColor *c); + RrAppearance *RrAppearanceNew (const RrInstance *inst, gint numtex); RrAppearance *RrAppearanceCopy (RrAppearance *a); void RrAppearanceFree (RrAppearance *a);