From 53e432db41f2a62009e264b7b85397df2957b5bd Mon Sep 17 00:00:00 2001 From: Ian C Date: Sat, 11 Jun 2005 23:57:40 +0000 Subject: Now passes in image flags when loading a font --- bitmapfont.mod/bitmapfont.bmx | 5 +++-- 1 file 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]) -- cgit v1.2.3