Post Reply 
Bug about the LINE_P function
09-22-2017, 04:28 AM
Post: #1
Bug about the LINE_P function
Hello,
I found that the LINE_P will draw a line at the right of the expected position if the y1 is less than 0.
You can try:
<code>LINE_P(100,0,100,100,0);
LINE_P(100,-1,100,100,255);
FREEZE;</code>
Then you will find that the blue line is just a pixel right of the black line. The bug still exists with the newest firmware, is there any way to fix it?

P.S. The alpha of the RECT_P function is still not fixed. RECT_P(#FF000000h);will still make the screen black.
Find all posts by this user
Quote this message in a reply
09-22-2017, 02:38 PM
Post: #2
RE: Bug about the LINE_P function
As part of the move the RGB8888 we went through and reviewed all of the alpha and drawing routines.

Neither of the things you report behave any differently then what I'd expect looking at your simple code. The first draws a single blue line. If you move the black one over to x=99 you see a black line right next to the blue line.

The other doesn't do anything. If you change the alpha AA or something the screen gets a slightly darker shade.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)