Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

It appears to be possible for IGRAPHICS_DrawLIne to simply not draw a line. A sample line like 84, 227 to 85,74 will not draw on the 2.1 Emulator, VX6000, A610 and I presume on several other phones. The issue seems to be when the starting point is off the bottom of the screen and the ending x = starting x + 1 and the y > 216. Not all values off the bottom of the screen will cause the problem, only some magic values. There seems to be no logic to the numbers. For example, these draw fine:
83,213 to 84,74
74,249 to 73,84

These do not draw:
80,242 to 81,73
80,239 to 81,73
87,243 to 88,74

The documentation says the DrawLine uses the world-coordinate system but nowhere does it say what the world coordinate system limits are.

Does anyone know any magic for DrawLIne otehrwise I will need to clip all lines to the screen to fix this.

i think screen size of vx6000 is 120x146.... if you specify co-ordinates within this range then there should not be any problem..
sdg

i think screen size of vx6000 is 120x146.... if you specify co-ordinates within this range then there should not be any problem..
sdg

Yes I understand. However, the docs do not state what the world coordinate system is and it is often larger than the screen size (ignoring bugs by the OEMs).
This begs the question of why they provide a clip region (yes I set it to the screen size) if it does not work!
It is interesting to note that the only failing cases are when sx + 1 = ex!

Yes I understand. However, the docs do not state what the world coordinate system is and it is often larger than the screen size (ignoring bugs by the OEMs).
This begs the question of why they provide a clip region (yes I set it to the screen size) if it does not work!
It is interesting to note that the only failing cases are when sx + 1 = ex!

In vector graphics (like Macromedia Flash or SVG) it is possible to have objects (line, points, rectangle etc) outside the viewable boundary. It is the clip rect which determines what will be drawn in the frame buffer and shown on to the screen.
For example, initially an object can be outside your clip rect, but when you pan your object might be visible and therefore will be drawn on to the screen.
ruben

In vector graphics (like Macromedia Flash or SVG) it is possible to have objects (line, points, rectangle etc) outside the viewable boundary. It is the clip rect which determines what will be drawn in the frame buffer and shown on to the screen.
For example, initially an object can be outside your clip rect, but when you pan your object might be visible and therefore will be drawn on to the screen.
ruben