question about #LEFT, #RIGHT

Report any Hollywood bugs here
Post Reply
peceha
Posts: 111
Joined: Tue Dec 13, 2016 8:39 am
Location: Poland

question about #LEFT, #RIGHT

Post by peceha »

Hi,
please try this:

Code: Select all

TextOut(#CENTER,#TOP,"top")
TextOut(#CENTER,#TOP+8,"top+8")

TextOut(#RIGHT,#CENTER,"right")
TextOut(#RIGHT-80,#CENTER,"right-80")   ;shows nothing

TextOut(#CENTER,#BOTTOM-8,"bottom-8")
TextOut(#CENTER,#BOTTOM,"bottom")

TextOut(#LEFT,#CENTER,"left")
TextOut((#LEFT+80),#CENTER,"left+80")  ;shows nothing

WaitKeyDown("any")
why do lines (marked with comments in the above code) are not giving any result? (#TOP and #BOTTOM works as expected)

EDIT:
they work when I insert following line at the top of the code:

Code: Select all

setFontStyle(#EDGE,#RED,1)
and they do not work with:

Code: Select all

setFontStyle(#NORMAL)
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: question about #LEFT, #RIGHT

Post by airsoftsoftwair »

Nice spot! Fixed now, thanks for reporting!

Code: Select all

- Fix: Adding or subtracting values from #LEFT, #RIGHT, or #CENTER and passing this value as the x
  coordinate to TextOut() didn't always work
Post Reply