Re: [AD] SF.net SVN: alleg:[12615] allegro/branches/4.9/addons/font/font.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


trentg@xxxxxxxxxx wrote:
Revision: 12615
          http://alleg.svn.sourceforge.net/alleg/?rev=12615&view=rev
Author:   trentg
Date:     2009-09-22 22:04:06 +0000 (Tue, 22 Sep 2009)

Log Message:
-----------
Made font addon compile again (thanks to Martijn's automated testing

Modified Paths:
--------------
    allegro/branches/4.9/addons/font/font.c

Modified: allegro/branches/4.9/addons/font/font.c
===================================================================
--- allegro/branches/4.9/addons/font/font.c	2009-09-22 21:58:16 UTC (rev 12614)
+++ allegro/branches/4.9/addons/font/font.c	2009-09-22 22:04:06 UTC (rev 12615)
@@ -168,14 +168,15 @@
     ALLEGRO_BITMAP *g;
g = _al_font_color_find_glyph(f, ch);
+    int w = al_get_bitmap_width(g);
+    int h = al_get_bitmap_height(g);
+

And this will break it on MSVC :)


--
Milan Mimica
http://sparklet.sf.net




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/