projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.jwz.org/xscreensaver/xscreensaver-5.07.tar.gz
[xscreensaver]
/
hacks
/
glx
/
glxfonts.h
diff --git
a/hacks/glx/glxfonts.h
b/hacks/glx/glxfonts.h
index 32bee489f9a3ac7bfdb82b2089e0be92c9313c8d..75107909af1666e2cd65225988095e273aa66f6a 100644
(file)
--- a/
hacks/glx/glxfonts.h
+++ b/
hacks/glx/glxfonts.h
@@
-1,4
+1,4
@@
-/* glxfonts, Copyright (c) 2001-200
4
Jamie Zawinski <jwz@jwz.org>
+/* glxfonts, Copyright (c) 2001-200
8
Jamie Zawinski <jwz@jwz.org>
* Loads X11 fonts for use with OpenGL.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* Loads X11 fonts for use with OpenGL.
*
* Permission to use, copy, modify, distribute, and sell this software and its
@@
-23,8
+23,9
@@
extern void load_font (Display *, char *resource,
XFontStruct **font_ret,
GLuint *dlist_ret);
XFontStruct **font_ret,
GLuint *dlist_ret);
-/* Width of the string in pixels. */
-extern int string_width (XFontStruct *f, const char *c);
+/* Bounding box of the string in pixels.
+ */
+extern int string_width (XFontStruct *f, const char *c, int *height_ret);
/* Draws the string on the window at the given pixel position.
Newlines and tab stops are honored.
/* Draws the string on the window at the given pixel position.
Newlines and tab stops are honored.
@@
-35,6
+36,7
@@
void print_gl_string (Display *dpy,
GLuint font_dlist,
int window_width, int window_height,
GLfloat x, GLfloat y,
GLuint font_dlist,
int window_width, int window_height,
GLfloat x, GLfloat y,
- const char *string);
+ const char *string,
+ Bool clear_background_p);
#endif /* __GLXFONTS_H__ */
#endif /* __GLXFONTS_H__ */