Hi guys (and gals!)
I have, like usually, a couple of question.
I’m wondering cause SDL_GetVideoInfo can’t detect
any HW acceleration in my S3 (virge dx).
DGA currently supports NO hardware acceleration.
This will change with XFree86 4.0
I know how to render a 640x480 screen from a 320x200 screen via cpu.
But I was looking for something smarter than just take a pixel and
to write it in a buffer 2 times (the same for each scanline…)
If the 320x200 screen is 8-bit, you can build a 32-bit lookup table
which contains two pixels for every one original pixels. The other
advantage of this is that you get 16-bit depth support for free.
Then, when you’re finished with a scanline, you can double it using
memcpy().
This is a very fast operation on modern systems, using software
surfaces.
-Sam Lantinga (slouken at devolution.com)
Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec