Open screen with black background

3 posts / 0 new
Last post
jabirulo
jabirulo's picture
Offline
Last seen: 2 weeks 4 days ago
Joined: 2013-05-30 00:53
Open screen with black background

Hi, how is the "better" way tom open a new/public screen and its background being black?

Now I'm using:

  1. IIntuition->OpenScreenTags(NULL,
  2. ...
  3. is_fullscreen? SA_BackFill : TAG_IGNORE , backfillhook,
  4. ...
  5. TAG_END);

and the hook:

  1. ...
  2. IGraphics->RectFillColor(&newrp,
  3. msg->Bounds.MinX, msg->Bounds.MinY,
  4. msg->Bounds.MaxX, msg->Bounds.MaxY,
  5. 0xff000000); // black color
  6. ...

I tried (IIRC) SA_Colors, (and set background Pen0 to black) but as it changes pen colors then all window/gagdets I open there have black background too (messages/texts can't be read)

File attachments: 

AttachmentSize
File openscrbackfill_src.lha2.11 KB
flash
flash's picture
Offline
Last seen: 5 months 4 weeks ago
Joined: 2018-02-24 17:25
Re: Open screen with black background

SetRast (RPort, 0) should do the trick.

jabirulo
jabirulo's picture
Offline
Last seen: 2 weeks 4 days ago
Joined: 2013-05-30 00:53
Re: Open screen with black background

ok, but as soon as I move a window on such screen it shows the "typical" gray bg (one set in Palette as background). but with tha backfill hook and

SetRast(&(scr->RastPort), 1); // pen 1 on my system is black

I get always black background.

THX

AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonHD6570/SSD120GB/DVDRW :-P

Log in or register to post comments