diff options
author | Ian C <ianc@noddybox.co.uk> | 2005-05-15 20:45:47 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2005-05-15 20:45:47 +0000 |
commit | c8f93dc5413458e68117b51153e74dacf2c38822 (patch) | |
tree | 09e7a3b81819eb38655ddc2428e7966158489a47 | |
parent | b7d8bbaa94996391dc41b54696e0919719ad70e4 (diff) |
Got rid of pointless masking (transparency done with alpha)
-rw-r--r-- | bitmapfont.mod/bitmapfont.bmx | 8 |
1 files changed, 1 insertions, 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 |