tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: I wrote a little graphics thing



Hello,

On Tue, 9 Jun 2026 11:51:47 +0000 (UTC)
RVP <rvp%SDF.ORG@localhost> wrote:

> On Mon, 8 Jun 2026, Michael wrote:
> 
> > [...]
> > That being said, I updated the tarball:
> > [...]
> > - added a few more fonts to try out ( and make sure my drawing routines
> >  handle more than 8 pixels wide )
> >  
> 
> Nice, but it looks like on little-endian machines a bswap() is reqd.:
> 
> ```
>     157			g = (uint16_t *)WSFONT_GLYPH(c, font);
>     158			for (i = 0; i < font->fontheight - 2; i++) {
>     159				l = *g;		<--- HERE
>     160				CHAR_LINE32(0x8000);
>     161			}
> ```
> 
> to use the Gallant (and Bold 16x32) glyph data.

Yeah, I started hacking away on macppc, sparc64, and hppa - all big endian. It's on my list.
The 32bit ops.color() variants will likely need it too.

> BTW, there's a similar project on Linux (I have it working on NetBSD with
> some hackish patches.)
> 
> https://github.com/aligrudi/fbpad

I'll have a look a that.

> > Why not just use old X...not for your purposes, but for the "X with a
> > bunch of terminals" use case?
> >  
> 
> Or, x11/tinyx-wscons:
> 
> https://pkgsrc.se/x11/tinyx-wscons
> 
> (can't set kbd rate with xset(1), though.)

That's basically Xorg with resurrected kdrive, and only the dumb
framebuffer driver compiled in. I meant to add hardware cursor support
to it but never got around to do it.

have fun
Michael


Home | Main Index | Thread Index | Old Index