Trying to compile on a MAC and get an error with the GridExModule. Any assistance or direction on fixing this most appreciated, thanks
[17:53:18] Waiting for executable to start...
[17:53:19] Executable type: MacOSX - x64 (64bit, Unicode)
[17:53:19] Executable started.
[17:53:19] [ERROR] GridExModule.pbi (Line: 3512)
[17:53:19] [ERROR] LoadFont(): invalid value specified for parameter 'Flags'.
Line
Code: Select all
309: FontID = LoadFont(#PB_Any, Name, Size, Flags)
Procedure:
Code: Select all
Procedure AddFont(GID.i, Font$)
Define.i FontID, Size, Flags
Define.s Name
If FindMapElement(Grid(), Str(GID))
;If FindMapElement(LoadedFonts(), Font$)
; ProcedureReturn LoadedFonts()
;Else
Name = StringField(Font$, 1, "|")
Size = Val(StringField(Font$, 2, "|"))
Flags = Val(StringField(Font$, 3, "|"))
FontID = LoadFont(#PB_Any, Name, Size, Flags)
If FontID
;LoadedFonts(Font$) = FontID
Grid()\Font(Font$) = FontID
ProcedureReturn FontID
EndIf
;EndIf
EndIf
ProcedureReturn #False
EndProcedure