Re: The Trunk: Graphics-eem.529.mcz

Christoph Thiede via Squeak-dev <[email protected]> Fri, 12 Jun 2026 19:15:50 +0200
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <261ed054-f660-42a9-9f51-9003468d9646@MX2025-DAG1.hpi.uni-potsdam.de>
Hi Eliot,

I'm curious, why does Form>>#pixelValueAt:put: not use this new primitive? :-)

Best,
Christoph

-- 
Sent from Squeak Inbox Talk

On 2022-07-26T18:58:30+00:00, [email protected] wrote:

> Eliot Miranda uploaded a new version of Graphics to project The Trunk:
> http://source.squeak.org/trunk/Graphics-eem.529.mcz
> 
> ==================== Summary ====================
> 
> Name: Graphics-eem.529
> Author: eem
> Time: 26 July 2022, 11:58:24.028857 am
> UUID: e9d779b9-578e-4eea-9d2a-b68fffc5c366
> Ancestors: Graphics-mt.528
> 
> Add the new primitivePixelValueAtPut primitive, which is included in 6.x VMs.
> 
> =============== Diff against Graphics-mt.528 ===============
> 
> Item was added:
> + ----- Method: Form>>primPixelValueAtX:y:put: (in category 'pixel access') -----
> + primPixelValueAtX: x y: y put: pixelValue
> +     "Set the raw pixel value at the given point. Answer the previous value of the pixel.
> +      This pixel value depends on the receiver's depth. Typical clients use colorAt: to get a Color. Make sure the colorMap is nil for ColorForms "
> + 
> +     <primitive: 'primitivePixelValueAtPut' module:'BitBltPlugin' error: ec>
> +     | oldValue |
> +     oldValue := self primPixelValueAtX: x y: y.
> +     (BitBlt bitPokerToForm: self) pixelAt: x(a)y put: pixelValue.
> +     ^oldValue!

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]