Thank you Flinx for your suggestion, I've known for years, based on experience, that certain instructions work differently on each system. My usual practice is to replace them with a more effective and functional solution.
But it's difficult. Sometimes I can figure out why instruction X works fine on Windows, MorphOS, and Linux, and other times it doesn't. It could be due to the operating system and the C language used to compile Hollywood on each system, which makes things different.
DisplayTextObjectFX
Re: DisplayTextObjectFX
Maybe we can speed up the bug hunting.
Please insert the following DebugPrint commands below the relevant DisplayTextObjectFX commands and compare the output from the Linux version with that of the other operating systems. Maybe there are any noticeable differences?
(The last four of the GetAttribute commands require active layers.)
Please insert the following DebugPrint commands below the relevant DisplayTextObjectFX commands and compare the output from the Linux version with that of the other operating systems. Maybe there are any noticeable differences?
(The last four of the GetAttribute commands require active layers.)
Code: Select all
DebugPrint("Text:",GetAttribute(#TEXTOBJECT, 1, #ATTRTEXT))
DebugPrint("FontColor:",HexStr(GetFontColor()))
DebugPrint("#ATTRWIDTH:",GetAttribute(#TEXTOBJECT, 1, #ATTRWIDTH))
DebugPrint("#ATTRHEIGHT:",GetAttribute(#TEXTOBJECT, 1, #ATTRHEIGHT))
DebugPrint("#ATTRFONTNAME:",GetAttribute(#TEXTOBJECT, 1, #ATTRFONTNAME))
DebugPrint("#ATTRFONTSIZE:",GetAttribute(#TEXTOBJECT, 1, #ATTRFONTSIZE))
DebugPrint("#ATTRTYPE:",GetAttribute(#TEXTOBJECT, 1, #ATTRTYPE))
DebugPrint("#ATTRFONTTYPE:",GetAttribute(#TEXTOBJECT, 1, #ATTRFONTTYPE))
DebugPrint("#ATTRXPOS:",GetAttribute(#LAYER, 1, #ATTRXPOS))
DebugPrint("#ATTRYPOS:",GetAttribute(#LAYER, 1, #ATTRYPOS))
DebugPrint("#ATTRVISIBLE:",GetAttribute(#LAYER, 1, #ATTRVISIBLE))
DebugPrint("#ATTRZPOS:",GetAttribute(#LAYER, 1, #ATTRZPOS))