void gradient_render(RrSurface *sf, int w, int h)
{
- pixel32 *data = sf->pixel_data;
- pixel32 current;
+ RrPixel32 *data = sf->RrPixel_data;
+ RrPixel32 current;
unsigned int r,g,b;
int off, x;
void gradient_vertical(RrSurface *sf, int w, int h)
{
- pixel32 *data = sf->pixel_data;
- pixel32 current;
+ RrPixel32 *data = sf->RrPixel_data;
+ RrPixel32 current;
float dr, dg, db;
unsigned int r,g,b;
int x, y;
void gradient_horizontal(RrSurface *sf, int w, int h)
{
- pixel32 *data = sf->pixel_data;
- pixel32 current;
+ RrPixel32 *data = sf->RrPixel_data;
+ RrPixel32 current;
float dr, dg, db;
unsigned int r,g,b;
int x, y;
void gradient_diagonal(RrSurface *sf, int w, int h)
{
- pixel32 *data = sf->pixel_data;
- pixel32 current;
+ RrPixel32 *data = sf->RrPixel_data;
+ RrPixel32 current;
float drx, dgx, dbx, dry, dgy, dby;
unsigned int r,g,b;
int x, y;
void gradient_crossdiagonal(RrSurface *sf, int w, int h)
{
- pixel32 *data = sf->pixel_data;
- pixel32 current;
+ RrPixel32 *data = sf->RrPixel_data;
+ RrPixel32 current;
float drx, dgx, dbx, dry, dgy, dby;
unsigned int r,g,b;
int x, y;
}
}
-void highlight(pixel32 *x, pixel32 *y, gboolean raised)
+void highlight(RrPixel32 *x, RrPixel32 *y, gboolean raised)
{
int r, g, b;
- pixel32 *up, *down;
+ RrPixel32 *up, *down;
if (raised) {
up = x;
down = y;
void gradient_solid(RrAppearance *l, int x, int y, int w, int h)
{
- pixel32 pix;
+ RrPixel32 pix;
int i, a, b;
RrSurface *sp = &l->surface;
int left = x, top = y, right = x + w - 1, bottom = y + h - 1;
for (a = 0; a < w; a++)
for (b = 0; b < h; b++)
- sp->pixel_data[a + b * w] = pix;
+ sp->RrPixel_data[a + b * w] = pix;
XFillRectangle(RrDisplay(l->inst), l->pixmap, sp->primary->gc,
x, y, w, h);
void gradient_pyramid(RrSurface *sf, int inw, int inh)
{
- pixel32 *data = sf->pixel_data;
- pixel32 *end = data + inw*inh - 1;
- pixel32 current;
+ RrPixel32 *data = sf->RrPixel_data;
+ RrPixel32 *end = data + inw*inh - 1;
+ RrPixel32 current;
float drx, dgx, dbx, dry, dgy, dby;
unsigned int r,g,b;
int x, y, h=(inh/2) + 1, w=(inw/2) + 1;
void gradient_rectangle(RrSurface *sf, int inw, int inh)
{
- pixel32 *data = sf->pixel_data;
- pixel32 *end = data + inw*inh - 1;
- pixel32 current;
+ RrPixel32 *data = sf->RrPixel_data;
+ RrPixel32 *end = data + inw*inh - 1;
+ RrPixel32 current;
float drx, dgx, dbx, dry, dgy, dby;
unsigned int r,g,b;
int x, y, h=(inh/2) + 1, w=(inw/2) + 1;
void gradient_pipecross(RrSurface *sf, int inw, int inh)
{
- pixel32 *data = sf->pixel_data;
- pixel32 *end = data + inw*inh - 1;
- pixel32 current;
+ RrPixel32 *data = sf->RrPixel_data;
+ RrPixel32 *end = data + inw*inh - 1;
+ RrPixel32 current;
float drx, dgx, dbx, dry, dgy, dby;
unsigned int r,g,b;
int x, y, h=(inh/2) + 1, w=(inw/2) + 1;