]> gitweb.factorcode.org Git - factor.git/commitdiff
fix typo
authorSlava Pestov <slava@factorcode.org>
Mon, 30 Jan 2006 23:53:57 +0000 (23:53 +0000)
committerSlava Pestov <slava@factorcode.org>
Mon, 30 Jan 2006 23:53:57 +0000 (23:53 +0000)
library/freetype/freetype-gl.factor

index eefa8e5c0f7ae6b15b5bb265453d08469874fd65..69db77be0cf7d2efb631cf110640cc8123015d71 100644 (file)
@@ -159,8 +159,8 @@ C: font ( handle -- font )
     font-ascent swap glyph-hori-bearing-y - ft-floor 0 3array ;
 
 : glyph-texture-size ( glyph -- dim )
-    dup glyph-bitmap-width 
-    swap glyph-bitmap-rows 0 3array ;
+    dup glyph-bitmap-width next-power-of-2
+    swap glyph-bitmap-rows next-power-of-2 0 3array ;
 
 : <char-sprite> ( font char -- sprite )
     #! Create a new display list of a rendered glyph. This