Deutsch   English   Français   Italiano  
<20240320011759.00005e2d@yahoo.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Michael S <already5chosen@yahoo.com>
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: <ut3669$21eur$1@i2pn2.org>
	<ut4020$2s8ov$1@dont-email.me>
	<ut4b09$2uhpm$1@dont-email.me>
	<ut4cnc$2ut2t$1@dont-email.me>
	<ut70b4$3itvb$1@dont-email.me>
	<20240317182520.00002390@yahoo.com>
	<utd5in$2e5ok$1@i2pn2.org>
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 <fir@grunge.pl> 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.