ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/pango-render.c
(Generate patch)

Comparing deliantra/Deliantra-Client/pango-render.c (file contents):
Revision 1.12 by root, Mon Aug 13 15:31:21 2007 UTC vs.
Revision 1.13 by root, Wed Dec 26 10:34:23 2007 UTC

180 if (!g || g->generation != tc_generation) 180 if (!g || g->generation != tc_generation)
181 { 181 {
182 Glyph bm; 182 Glyph bm;
183 font_render_glyph (&bm, font, glyph); 183 font_render_glyph (&bm, font, glyph);
184 184
185 if (g) 185 if (!g)
186 g->generation = tc_generation;
187 else
188 { 186 {
189 g = g_slice_new (glyph_info); 187 g = g_slice_new (glyph_info);
190 188
191 _pango_opengl_font_set_glyph_cache_destroy (font, (GDestroyNotify)free_glyph_info); 189 _pango_opengl_font_set_glyph_cache_destroy (font, (GDestroyNotify)free_glyph_info);
192 _pango_opengl_font_set_cache_glyph_data (font, glyph, g); 190 _pango_opengl_font_set_cache_glyph_data (font, glyph, g);
193 } 191 }
194 192
193 g->generation = tc_generation;
195 tc_get (&g->tex, bm.width, bm.height); 194 tc_get (&g->tex, bm.width, bm.height);
196 195
197 g->left = bm.left; 196 g->left = bm.left;
198 g->top = bm.top; 197 g->top = bm.top;
199 198

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines