Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael S Newsgroups: comp.lang.c Subject: Re: filling area by color atack safety Date: Wed, 20 Mar 2024 01:17:59 +0200 Organization: A noiseless patient Spider Lines: 21 Message-ID: <20240320011759.00005e2d@yahoo.com> References: <20240317182520.00002390@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: dont-email.me; posting-host="81d7bc9a7495271f9790b1be0b3006b0"; logging-data="1156606"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198GryChbcEa14AhWhFdPVp+D8WXimJiyo=" Cancel-Lock: sha1:F7b9eMF0CG0bCHbanYE47mpiKuE= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32) Bytes: 1603 On Wed, 20 Mar 2024 00:03:04 +0100 fir wrote: > im not quite sure what you do here.. pass the structure? in fact > the thing you name context you may not pass at all just make is > standalone static variables becouse they/it is the same for whole > "branch" (given recursive branch of recolorisation) > > something like > > int old_color = 0xff0000; > int new_color = 0x00ff00; > > void RecolorizePixelAndAdjacentPixels(int x, int y) > { > //... > } > > Not thred-safe.