static void Standard_SetOutlineColor(struct RastPort *rp, ULONG color) { struct colorPen *cp = GetColorPen(color); SetOutlinePen(rp, cp->cp_Pen); }
VOID test_flood(struct Window *w) { struct TmpRas tmpras; BYTE *buffer; D(bug("Window layer: %p\n", w->WLayer)); buffer = AllocRaster(w->WLayer->Width, w->WLayer->Height); D(bug("buffer: %p\n", buffer)); if (!buffer) return; InitTmpRas(&tmpras, buffer, RASSIZE(w->WLayer->Width, w->WLayer->Height)); w->RPort->TmpRas = &tmpras; SetOutlinePen(w->RPort, 1); SetAPen(w->RPort, 1); SetDrPt(w->RPort, ~0L); Move(w->RPort, 50, 50); Draw(w->RPort, 100, 100); Draw(w->RPort, 50, 100); Draw(w->RPort, 50, 50); D(bug("Calling Flood()\n")); Flood(w->RPort, 0, 70, 80); /* outline mode */ w->RPort->TmpRas = NULL; }