why is panel.scale_x limited to -10... +10 ?

Posted By: Germanunkol

why is panel.scale_x limited to -10... +10 ? - 03/03/10 17:16

The topic heading says it all. Why is that so? And can it be changed? I only noticed after getting weird results when scaling images.

I understand if this is trying to keep the beginner from scaling images too high and getting bad-looking results, but I've often had images that were only one pixel in hight and that I wanted to strech across half the screen, in height.

Right now I want to create a scrollbar that changes height when the screen resolution changes (and thus the scrollable area's size) and I can't scale it to the propper height.
Posted By: darkinferno

Re: why is panel.scale_x limited to -10... +10 ? - 03/03/10 17:19

lmao, gamestudio strikes again ^^
Posted By: Germanunkol

Re: why is panel.scale_x limited to -10... +10 ? - 03/03/10 20:34

P.S.: can't use size_y because it repeats the thing, but with a black line of one pixel width between the bmap and the repeated bmap.
Posted By: flits

Re: why is panel.scale_x limited to -10... +10 ? - 03/04/10 16:07

maby you can use the workaround by using

bmp_createblack
and bmap_blit
Posted By: WretchedSid

Re: why is panel.scale_x limited to -10... +10 ? - 03/04/10 17:39

Originally Posted By: Germanunkol
P.S.: can't use size_y because it repeats the thing, but with a black line of one pixel width between the bmap and the repeated bmap.

The bitmap size must be power of two!
Posted By: Germanunkol

Re: why is panel.scale_x limited to -10... +10 ? - 03/04/10 18:19

Thanks to both of you!
Will try the power of two. Sorry, I missed that in the manual, my bad.
© 2023 lite-C Forums