Don't block waiting for response to font_load before
authorsachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 29 Jun 2012 22:04:13 +0000 (22:04 +0000)
committersachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 29 Jun 2012 22:04:13 +0000 (22:04 +0000)
 requesting glyphs, the server can handle dependencies
 now.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@73059 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/cserve2/evas_cs2_client.c

index 97ccd8e..b009849 100644 (file)
@@ -1167,7 +1167,9 @@ evas_cserve2_font_glyph_request(Font_Entry *fe, unsigned int idx, Font_Hint_Flag
    CS_Glyph_Out *glyph;
 
    if (fe->rid)
-     _server_dispatch_until(fe->rid);
+     _server_dispatch_until(0); /* dispatch anything pending just to avoid
+                                   requesting glyphs for a font we may already
+                                   know it failed loading, but don't block */
 
    if (fe->failed)
      return EINA_FALSE;
@@ -1212,7 +1214,9 @@ evas_cserve2_font_glyph_used(Font_Entry *fe, unsigned int idx, Font_Hint_Flags h
    CS_Glyph_Out *glyph;
 
    if (fe->rid)
-     _server_dispatch_until(fe->rid);
+     _server_dispatch_until(0); /* dispatch anything pending just to avoid
+                                   requesting glyphs for a font we may already
+                                   know it failed loading, but don't block */
 
    if (fe->failed)
      return EINA_FALSE;