Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gfxlib2 draw bug
#1
according to qb (and fb) documentation on draw, it should default to "s4", but it doesn't in gfxlib2, but instead defaults to some larger value. (at least, it did in my test...)
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#2
Doesn't s4 mean the a U will move up 4 pixels?
I thought the default was s1...
Reply
#3
Quote:Commands to scale and rotate:
Sn Sets the current unit length; default is 4 pixels per
unit.
i had to issue a draw "s4" command at the beginning of my program to get it to work right though.
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#4
This is weird: somewhere I read the default unit size in QB was 4 pixels, so I implemented it this way... But now I've opened QB again and it says the default unit size is 1 pixel :???:
What is the correct one??
ngelo Mottola - EC++
Reply
#5
Quote:│────────────────────────────Used to Scale and Rotate──────────────────────────
│Sn Increases or decreases length of │ An Rotate (n * 90) degrees,
│ moves (n=4 is default) │ where n = 0, 1, 2, or 3
│ │ TAn Rotate (0 >= n <= 360) degrees
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#6
But I've used DRAW a lot, and trust me, U moves up 1 pixel, not 4 pixels.
Reply
#7
In QBX, it says that the default factor for Scaling is 4, which causes no scaling.
Reply
#8
It seems M$ coders couldn't standardize on this (well duh, when you think about standards, M$ has never been on the edge) as different QB versions used different default DRAW unit.

So again, what default unit FB should adopt?
ngelo Mottola - EC++
Reply
#9
lillo the gfx's lib is your baby i say you pick which stander you go with and everyone else can just live with it.
Reply
#10
i think that "s4" sets the scale to 1 pixel per unit. lower numbers, such as "s2", would set .5 pixels per unit, etc.
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)