Welcome, Guest. Please login or register.

Author Topic: Problem with SA_BackFill  (Read 3989 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: Problem with SA_BackFill
« on: April 03, 2011, 08:02:38 AM »
It does work. If you move the window away, the revealed areas are filled with black as intended.

The problem is that installing the hook does not invoke it. You either need to call it manually or open and close a window which covers the entire screen.

Edit: this may be used to call the hook manually:

Quote

struct BackfillMsg tempbfm;
tempbfm.rect.MinX = 0;
tempbfm.rect.MinY = scr->BarHeight + 1;
tempbfm.rect.MaxX = scr->Width - 1;
tempbfm.rect.MaxY = scr->Height - 1;
CallHookPkt (&bfhook,&scr->RastPort,&tempbfm);
« Last Edit: April 03, 2011, 08:11:25 AM by Thomas »