paint gets more parameters
This commit is contained in:
parent
e9a7fc91bc
commit
fdabd3daf9
3 changed files with 4 additions and 6 deletions
|
@ -50,6 +50,8 @@ color_rgb *color_new(int r, int g, int b)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//XXX same color could be pointed to twice, this might have to be a refcount
|
||||||
|
|
||||||
void color_free(color_rgb *c)
|
void color_free(color_rgb *c)
|
||||||
{
|
{
|
||||||
if (c->gc != None)
|
if (c->gc != None)
|
||||||
|
|
|
@ -54,7 +54,7 @@ void render_startup(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void x_paint(Window win, Appearance *l, int w, int h)
|
void x_paint(Window win, Appearance *l, int x, int y, int w, int h)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
XImage *im;
|
XImage *im;
|
||||||
|
|
|
@ -71,10 +71,6 @@ typedef enum {
|
||||||
} TextureType;
|
} TextureType;
|
||||||
|
|
||||||
typedef struct PlanarSurface {
|
typedef struct PlanarSurface {
|
||||||
int x;
|
|
||||||
int y;
|
|
||||||
int width;
|
|
||||||
int height;
|
|
||||||
SurfaceColorType grad;
|
SurfaceColorType grad;
|
||||||
ReliefType relief;
|
ReliefType relief;
|
||||||
BevelType bevel;
|
BevelType bevel;
|
||||||
|
@ -158,7 +154,7 @@ extern Visual *render_visual;
|
||||||
extern int render_depth;
|
extern int render_depth;
|
||||||
extern Colormap render_colormap;
|
extern Colormap render_colormap;
|
||||||
|
|
||||||
void (*paint)(Window win, Appearance *l, int w, int h);
|
void (*paint)(Window win, Appearance *l, int x, int y, int w, int h);
|
||||||
|
|
||||||
void render_startup(void);
|
void render_startup(void);
|
||||||
void init_appearance(Appearance *l);
|
void init_appearance(Appearance *l);
|
||||||
|
|
Loading…
Reference in a new issue