From c8f93dc5413458e68117b51153e74dacf2c38822 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 15 May 2005 20:45:47 +0000 Subject: Got rid of pointless masking (transparency done with alpha) --- bitmapfont.mod/bitmapfont.bmx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bitmapfont.mod/bitmapfont.bmx b/bitmapfont.mod/bitmapfont.bmx index 56a36ad..455a913 100644 --- a/bitmapfont.mod/bitmapfont.bmx +++ b/bitmapfont.mod/bitmapfont.bmx @@ -26,7 +26,6 @@ Type BitmapFont Local str:TStream Local magic:String Local f,x,y - Local r,g,b str=ReadStream(path) @@ -43,14 +42,11 @@ Type BitmapFont fnt.is_fixed=Readint(str) - GetMaskColor(r,g,b) - SetMaskColor(0,0,0) - For f=0 Until NOCHR fnt.width[f]=Readint(str) fnt.height[f]=Readint(str) - fnt.img[f]=CreateImage(fnt.width[f],fnt.height[f],1,MASKEDIMAGE)'FILTEREDIMAGE|MASKEDIMAGE) + fnt.img[f]=CreateImage(fnt.width[f],fnt.height[f],1,0)'MASKEDIMAGE)'FILTEREDIMAGE|MASKEDIMAGE) Local pm:TPixmap=LockImage(fnt.img[f]) @@ -63,8 +59,6 @@ Type BitmapFont UnlockImage(fnt.img[f]) Next - SetMaskColor(r,g,b) - CloseStream(str) Return fnt -- cgit v1.2.3