04-24-2016, 11:18 AM
Hi,
I noticed a strange issue in the RECT_P (FW 10077).
Try this code:
The middle transparency values are displayed properly, but the first text shouldn't be visible because of black ractange (transparency = 0) covers the text and the last one should be visible (255 = full transparency fo rectangle), but it did'nt displays this way.
Edit:
I think also there is a inconsistency with alpha parameter for BLIT and RECT, because in BLIT for apha = 0 means full transparency but for RECT alpha = 0 means full opaque.
I noticed a strange issue in the RECT_P (FW 10077).
Try this code:
Code:
EXPORT RECT_P_TEST_ALPHA()
BEGIN
local c = #FF0000;
RECT_P(G0,0);
TEXTOUT_P("TRANSPARENCY 0",40,0,4,#FFFFFF);
RECT_P(40,0,200,19,{c,0}); // should be opaque
TEXTOUT_P("TRANSPARENCY 50",40,40,4,#FFFFFF);
RECT_P(40,40,200,59,{c,50});
TEXTOUT_P("TRANSPARENCY 100",40,80,4,#FFFFFF);
RECT_P(40,80,200,99,{c,100});
TEXTOUT_P("TRANSPARENCY 150",40,120,4,#FFFFFF);
RECT_P(40,120,200,139,{c,150});
TEXTOUT_P("TRANSPARENCY 200",40,160,4,#FFFFFF);
RECT_P(40,160,200,179,{c,200});
TEXTOUT_P("TRANSPARENCY 255",40,200,4,#FFFFFF);
RECT_P(40,200,200,219,{c,255}); // should be transparent
WAIT();
END;
The middle transparency values are displayed properly, but the first text shouldn't be visible because of black ractange (transparency = 0) covers the text and the last one should be visible (255 = full transparency fo rectangle), but it did'nt displays this way.
Edit:
I think also there is a inconsistency with alpha parameter for BLIT and RECT, because in BLIT for apha = 0 means full transparency but for RECT alpha = 0 means full opaque.