News for hackers. Stuff that matters.
Re:Lotus 1-2-3 arbitrary resolution by userbinator on Tuesday March 02, 2021 @08:34PM (#26323626)
I was actually inspired by that one, but it has some glaring deficiencies (like windowed DOS boxes corrupting the graphics state) that I wanted to fix; but only managed to do so, partially, before other things took priority.

The amount of code needed to get basic unaccelerated graphics working is surprisingly small; most of it has to do with detection and modeswitching. Once you set the mode, all you need to do is give Windows' GDI the appropriate framebuffer and related information (the structures are, not surprisingly, very similar to a BMP file header), and it will do all the rendering. Of course you can also hook into some of the drawing functions for some acceleration, but my testing with a relatively recent GPU and CPU showed that even unaccelerated 2D graphics is plenty fast for essentially everything but gaming. That's partly why I wanted to turn it into RDP --- which AFAIK is similar to GDI, but RPC'd over the network.

Re:Lotus 1-2-3 arbitrary resolution by skissane on Wednesday March 03, 2021 @03:55AM (#26326145)
Any chance you might open source the generic VESA framebuffer you wrote? It would be interesting to read the code.