Post Reply 
FW 10077 and RECT_P (issue)
04-24-2016, 11:18 AM (This post was last modified: 04-24-2016 02:22 PM by komame.)
Post: #1
FW 10077 and RECT_P (issue)
Hi,

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.

Piotr Kowalewski
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
FW 10077 and RECT_P (issue) - komame - 04-24-2016 11:18 AM



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