Commit 4ecccb6f authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

goom: Remove unused functions

parent aafcbbb2
...@@ -73,16 +73,6 @@ setPixelRGB_ (Pixel * buffer, Uint x, Color c) ...@@ -73,16 +73,6 @@ setPixelRGB_ (Pixel * buffer, Uint x, Color c)
buffer[x].channels.b = c.b; buffer[x].channels.b = c.b;
} }
static inline void
getPixelRGB (PluginInfo * goomInfo, Pixel * buffer, Uint x, Uint y, Color * c)
{
Pixel i = *(buffer + (x + y * goomInfo->screen.width));
c->b = i.channels.b;
c->v = i.channels.g;
c->r = i.channels.r;
}
static inline void static inline void
getPixelRGB_ (Pixel * buffer, Uint x, Color * c) getPixelRGB_ (Pixel * buffer, Uint x, Color * c)
{ {
......
...@@ -250,39 +250,6 @@ setPixelRGB_ (Uint * buffer, Uint x, Color c, guint32 resolx, guint32 resoly) ...@@ -250,39 +250,6 @@ setPixelRGB_ (Uint * buffer, Uint x, Color c, guint32 resolx, guint32 resoly)
#endif #endif
} }
static inline void
getPixelRGB (Uint * buffer, Uint x, Uint y, Color * c,
guint32 resolx, guint32 resoly)
{
register unsigned char *tmp8;
#ifdef _DEBUG
if (x + y * resolx >= resolx * resoly) {
printf ("getPixel ERROR : hors du tableau... %i, %i\n", x, y);
exit (1);
}
#endif
#ifdef __BIG_ENDIAN__
c->b = *(unsigned char *) (tmp8 =
(unsigned char *) (buffer + (x + y * resolx)));
c->r = *(unsigned char *) (++tmp8);
c->v = *(unsigned char *) (++tmp8);
c->b = *(unsigned char *) (++tmp8);
#else
/* ATTENTION AU PETIT INDIEN */
c->b = *(unsigned char *) (tmp8 =
(unsigned char *) (buffer + (x + y * resolx)));
c->v = *(unsigned char *) (++tmp8);
c->r = *(unsigned char *) (++tmp8);
/* *c = (Color) buffer[x+y*WIDTH] ; */
#endif
}
static inline void static inline void
getPixelRGB_ (Uint * buffer, Uint x, Color * c, guint32 resolx, guint32 resoly) getPixelRGB_ (Uint * buffer, Uint x, Color * c, guint32 resolx, guint32 resoly)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment