Hi, how is the "better" way tom open a new/public screen and its background being black?
Now I'm using:
IIntuition->OpenScreenTags(NULL, ... is_fullscreen? SA_BackFill : TAG_IGNORE , backfillhook, ... TAG_END);
and the hook:
... IGraphics->RectFillColor(&newrp, msg->Bounds.MinX, msg->Bounds.MinY, msg->Bounds.MaxX, msg->Bounds.MaxY, 0xff000000); // black color ...
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:
Attachment | Size |
---|---|
openscrbackfill_src.lha | 2.11 KB |
SetRast (RPort, 0) should do the trick.
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