From cd12a2eae5b5b72df08d588ac71d1f6cf6725dfb Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 20 Jun 2003 02:17:23 +0000 Subject: simply the render interface by not requiring the setting of all the areas. only take a w and h in paint(). best font layout ever. --- render/render.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'render/render.h') diff --git a/render/render.h b/render/render.h index 1b1cce1d..31e62ee7 100644 --- a/render/render.h +++ b/render/render.h @@ -59,7 +59,6 @@ typedef struct Surface { typedef struct { XftFont *xftfont; - int height; int elipses_length; } ObFont; @@ -107,18 +106,19 @@ typedef union { } TextureData; typedef struct Texture { - Rect position; TextureType type; TextureData data; } Texture; typedef struct Appearance { Surface surface; - Rect area; int textures; Texture *texture; Pixmap pixmap; XftDraw *xftdraw; + + /* cached for internal use */ + int w, h; } Appearance; extern Visual *render_visual; @@ -126,12 +126,9 @@ extern XVisualInfo render_visual_info; extern int render_depth; extern Colormap render_colormap; -void (*paint)(Window win, Appearance *l); - void render_startup(void); void init_appearance(Appearance *l); -void x_paint(Window win, Appearance *l); -void gl_paint(Window win, Appearance *l); +void paint(Window win, Appearance *l, int w, int h); void render_shutdown(void); Appearance *appearance_new(int numtex); Appearance *appearance_copy(Appearance *a); -- cgit v1.2.3