Bug? Scaled text jiggles badly.

BlitzMax Forums/BlitzMax Programming/Bug? Scaled text jiggles badly.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

It would have taken you all of two minutes to fix this yourself!

I'll leave it to you to discover whereabouts in 'imagefonts.bmx' this has to go...
Method Draw( text$,x#,y#,ix#,iy#,jx#,jy# )

	For Local i=0 Until text.length
	
		Local n=CharToGlyph( text[i] )
		If n<0 Continue
		
		Local glyph:TImageGlyph=LoadGlyph(n)
		Local image:TImage=glyph._image
		
		Local tx#=glyph._x*ix+glyph._y*iy ' Changed tx to float
		Local ty#=glyph._x*jx+glyph._y*jy ' Changed ty to float			
		
		If image image.Frame(0).Draw 0,0,image.width,image.height,x+tx,y+ty
		
		x:+glyph._advance*ix
		y:+glyph._advance*jx
	Next
	
End Method
You should at least do some work, ya lazy git. ;op

[edit]
Updated to be less cryptic
[/edit]