version 1.13 | | version 1.14 |
---|
| | |
* Graphical routines for drawing fonts. | | * Graphical routines for drawing fonts. |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.14 2003/06/27 07:21:07 donut |
| | * memset ogl font bitmap data since the copy function leaves some (unused) parts uninitialized, which aggrivates valgrind |
| | * |
* Revision 1.13 2000/02/07 07:47:44 donut | | * Revision 1.13 2000/02/07 07:47:44 donut |
* ogl font memleak fix | | * ogl font memleak fix |
* | | * |
| | |
// char s[2]; | | // char s[2]; |
ogl_font_choose_size(font,gap,&tw,&th); | | ogl_font_choose_size(font,gap,&tw,&th); |
data=malloc(tw*th); | | data=malloc(tw*th); |
| | memset(data,0,tw*th); |
gr_init_bitmap(&font->ft_parent_bitmap,BM_LINEAR,0,0,tw,th,tw,data); | | gr_init_bitmap(&font->ft_parent_bitmap,BM_LINEAR,0,0,tw,th,tw,data); |
| | |
font->ft_parent_bitmap.gltexture=ogl_get_free_texture(); | | font->ft_parent_bitmap.gltexture=ogl_get_free_texture(); |