summaryrefslogtreecommitdiff
path: root/bitmapfont.mod/bitmapfont.bmx
diff options
context:
space:
mode:
Diffstat (limited to 'bitmapfont.mod/bitmapfont.bmx')
-rw-r--r--bitmapfont.mod/bitmapfont.bmx5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitmapfont.mod/bitmapfont.bmx b/bitmapfont.mod/bitmapfont.bmx
index 455a913..4c78c73 100644
--- a/bitmapfont.mod/bitmapfont.bmx
+++ b/bitmapfont.mod/bitmapfont.bmx
@@ -10,6 +10,7 @@ ModuleInfo "Version: $Revision$"
Import brl.Max2D
Import brl.Basic
+
Strict
Type BitmapFont
@@ -21,7 +22,7 @@ Type BitmapFont
Field width:Int[NOCHR]
Field is_fixed:Int
- Function Load:BitmapFont(path:String)
+ Function Load:BitmapFont(path:String, image_flags:Int)
Local fnt:BitmapFont
Local str:TStream
Local magic:String
@@ -46,7 +47,7 @@ Type BitmapFont
fnt.width[f]=Readint(str)
fnt.height[f]=Readint(str)
- fnt.img[f]=CreateImage(fnt.width[f],fnt.height[f],1,0)'MASKEDIMAGE)'FILTEREDIMAGE|MASKEDIMAGE)
+ fnt.img[f]=CreateImage(fnt.width[f],fnt.height[f],1,image_flags)
Local pm:TPixmap=LockImage(fnt.img[f])