X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Ftranslators%2FFreetype.java;h=1608a750f82216cd52430fa47e0df1db101be386;hb=745fb6aad79e10eb8c402b8fa6a591769c0fcdfb;hp=ccb3004372b81a3706f505fd710b4c6967603c25;hpb=a071a56b6d9c9d38b85d23cc3eb287435322d0cc;p=org.ibex.core.git diff --git a/src/org/xwt/translators/Freetype.java b/src/org/xwt/translators/Freetype.java index ccb3004..1608a75 100644 --- a/src/org/xwt/translators/Freetype.java +++ b/src/org/xwt/translators/Freetype.java @@ -51,19 +51,21 @@ public class Freetype { int width = vm.getUserInfo(6); int height = vm.getUserInfo(7); - int[] data = new int[width * height]; + byte[] data = new byte[width * height]; int addr = vm.getUserInfo(5); - for(int i=0; i= 0; k--) { if (i + k < width * height) data[i + k] = (val & 0xff) << 24; val >>>= 8; } - } + }*/ - glyph.p = Platform.createPicture(data, width, height); + glyph.p = Platform.createAlphaOnlyPicture(data, width, height); glyphCache.put(res, new Integer((g << 16) | pointsize), glyph); } } catch (Exception e) {