summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-06-11 23:57:40 +0000
committerIan C <ianc@noddybox.co.uk>2005-06-11 23:57:40 +0000
commit53e432db41f2a62009e264b7b85397df2957b5bd (patch)
tree3e90e033bf0a79e34256236ce66ab4ac6385e67b
parentc8f93dc5413458e68117b51153e74dacf2c38822 (diff)
Now passes in image flags when loading a font
-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])