]> icculus.org git repositories - dana/openbox.git/blob - render2/planar.h
fix a seg, fix the loop for rendering a string
[dana/openbox.git] / render2 / planar.h
1 #ifndef __render_planar_h
2 #define __render_planar_h
3
4 #include "render.h"
5
6 struct RrPlanarSurface {
7     enum RrSurfaceColorType colortype;
8
9     struct RrColor primary;
10     struct RrColor secondary;
11 };
12
13 #define RrPlanarColorType(sur) ((sur)->data.planar.colortype)
14 #define RrPlanarPrimaryColor(sur) ((sur)->data.planar.primary)
15 #define RrPlanarSecondaryColor(sur) ((sur)->data.planar.secondary)
16
17 void RrPlanarPaint(struct RrSurface *sur, int absx, int absy);
18
19 void RrPlanarMinSize(struct RrSurface *sur, int *w, int *h);
20
21 #endif