mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 15:48:00 +02:00
Additional fix for 0-width/0-height glyphs.
This commit is contained in:
parent
8df9bfecad
commit
bbf0d98a54
2 changed files with 7 additions and 4 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2005-08-10 Vladimir Vukicevic <vladimir@pobox.com>
|
||||
|
||||
* src/cairo-glitz-surface.c: Additional fix for 0-width/0-height
|
||||
glyphs.
|
||||
|
||||
2005-08-10 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* Makefile.am:
|
||||
|
|
|
|||
|
|
@ -1266,9 +1266,6 @@ static cairo_status_t
|
|||
_cairo_glitz_area_move_in (cairo_glitz_area_t *area,
|
||||
void *closure)
|
||||
{
|
||||
if (area == &_empty_area)
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
||||
area->closure = closure;
|
||||
area->state = CAIRO_GLITZ_AREA_OCCUPIED;
|
||||
|
||||
|
|
@ -1785,7 +1782,8 @@ _cairo_glitz_cache_glyph (cairo_glitz_glyph_cache_t *cache,
|
|||
entry->size.height > GLYPH_CACHE_MAX_HEIGHT)
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
||||
if (!image_entry->image)
|
||||
if ((entry->size.width == 0 && entry->size.height == 0) ||
|
||||
!image_entry->image)
|
||||
{
|
||||
entry->area = &_empty_area;
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue