summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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