yaoshaojun / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

Grid is faulty - 1x1 pixel off #548

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The grid system is faulty: a pixel is eaten off the left and right.

For example, if I set an 8x8 grid, the upper-left block is 7x7, all the 
subsequent leftmost vertical blocks are 7x8 and all the subsequent uppermost 
horizontal blocks are 8x7.

Attached is a picture of the issue. You can clearly count the difference.

Makes it very complicated to work on tile-restricted formats, C64 and more.

Original issue reported on code.google.com by k.dron...@gmail.com on 9 Feb 2014 at 10:50

Attachments:

GoogleCodeExporter commented 9 years ago
I forgot to say I am running version 2.4 on Windows.
I hope this is seen here, I just noticed the new page.

Original comment by k.dron...@gmail.com on 9 Feb 2014 at 10:52

GoogleCodeExporter commented 9 years ago
And I meant "left and top", sorry.

Original comment by k.dron...@gmail.com on 10 Feb 2014 at 11:52

GoogleCodeExporter commented 9 years ago
In the grid settings, you probably have dX and dY as 7, which means the entire 
grid is shifted 7 pixels right and down (for 8x8, this is that same as 1 pixel 
up and left)

Original comment by yrizoud on 11 Feb 2014 at 10:26

GoogleCodeExporter commented 9 years ago
Yes, it says DX and DY is equal 7, but it doesn't let me have it as 8. Why?
When I try to do Highres C64 graphics, everything is shifted and clashing 
occurs. This is incorrect.
What is the purpose of having this working in this way?

Original comment by k.dron...@gmail.com on 11 Feb 2014 at 10:28

GoogleCodeExporter commented 9 years ago
OH I see, it had to be at ZERO.
This was a bit counter-intuitive. But now it works fine.

Original comment by k.dron...@gmail.com on 11 Feb 2014 at 10:30

GoogleCodeExporter commented 9 years ago
Closing as there isn't really a bug, just bad setting of dx/dy. Maybe the grid 
setup could be improved however.

Original comment by pulkoma...@gmail.com on 10 Feb 2015 at 8:23