From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.53.91 with SMTP id c88mr6381898ioa.73.1490555415700; Sun, 26 Mar 2017 12:10:15 -0700 (PDT) X-Received: by 10.157.55.247 with SMTP id x110mr1509066otb.6.1490555415667; Sun, 26 Mar 2017 12:10:15 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!y18no36745itc.0!news-out.google.com!i72ni3497itb.0!nntp.google.com!y18no36740itc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 26 Mar 2017 12:10:15 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3c2f:4800:ba1c:58e0:f31b:705e; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3c2f:4800:ba1c:58e0:f31b:705e References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <76cd77cd-910a-492c-8833-72a4696d444a@googlegroups.com> Subject: Re: Best way to put an array-based pixmap on a screen? From: Lucretia Injection-Date: Sun, 26 Mar 2017 19:10:15 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:46465 Date: 2017-03-26T12:10:15-07:00 List-Id: In response to the original message (which google doesn't have for some reason)... I don't think this is harder than working with X11 directly, it's significantly easier: https://github.com/Lucretia/sdlada/blob/master/test/stream2.adb line 183 which would give you per pixel access on a packed record each component being 8-bits, ARGB. I still have to change the array discriminants to start at 0 instead of 1, because that just makes things easier with these particular pixel arrays.