summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-05-15 20:45:47 +0000
committerIan C <ianc@noddybox.co.uk>2005-05-15 20:45:47 +0000
commitc8f93dc5413458e68117b51153e74dacf2c38822 (patch)
tree09e7a3b81819eb38655ddc2428e7966158489a47
parentb7d8bbaa94996391dc41b54696e0919719ad70e4 (diff)
Got rid of pointless masking (transparency done with alpha)
-rw-r--r--bitmapfont.mod/bitmapfont.bmx8
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