problem with anchox & anchory

Discuss any general programming issues here

problem with anchox & anchory

Postby xabierpayet » Tue Mar 21, 2017 8:55 pm

is not working anchorx & anchory with text objects? or i need change my old code?

textout(320,240,"session time left: "..minuts2..":"..segons2,{anchorx=0.5,anchory=0.5})

this code don´t is affected by the anchor parameter
xabierpayet
 
Posts: 146
Joined: Fri Feb 24, 2012 10:34 am

Re: problem with anchox & anchory

Postby airsoftsoftwair » Wed Mar 22, 2017 12:30 am

Hmm, right, looks like a bug. You can use this as a workaround:

Code: Select all
textout(320,240,"session time left: "..minuts2..":"..segons2,{anchorx=0.5,anchory=0.5,align=#CENTER})
User avatar
airsoftsoftwair
 
Posts: 2098
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: problem with anchox & anchory

Postby airsoftsoftwair » Sun Aug 20, 2017 7:51 pm

Code: Select all
- Fix: When using TextOut() with left alignment and Hollywood deemed the text appropriate for its
  internal fast draw optimization, the AnchorX and AnchorY values weren't applied to the positioning
User avatar
airsoftsoftwair
 
Posts: 2098
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to General programming

Who is online

Users browsing this forum: No registered users and 1 guest