Rockbox

Tasklist

FS#2850 - sdl uisimulator

Attached to Project: Rockbox
Opened by Nathan Hand (nathanh) - Monday, 19 December 2005, 12:46 GMT
Last edited by Daniel Stenberg (bagder) - Monday, 09 January 2006, 11:23 GMT
Task Type Patches
Category Simulator
Status Closed
Assigned To No-one
Operating System
Severity Low
Priority Normal
Reported Version Unstable (example)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

This is an SDL version of the UI simulator. Has been successfully tested
with H340 sim on Linux.

You will need the patch as well as the zip file. The patch modifies the
build and the new code is in the zip.
This task depends upon

Closed by  Daniel Stenberg (bagder)
Monday, 09 January 2006, 11:23 GMT
Reason for closing:  Accepted
Comment by Nathan Hand (nathanh) - Monday, 19 December 2005, 12:52 GMT

Did I mention all the limitations in this first draft of the patch?

- only tested with H340 sim
- will only build on Linux
- sound probably doesn't work (I don't have a soundcard)
- ugly implementation (array of rects instead of direct surface writes)

But it works well enough to be useful, so here it is.
Comment by Nathan Hand (nathanh) - Monday, 19 December 2005, 13:47 GMT

New version of the patch draws dots directly to the surface.
Comment by Nathan Hand (nathanh) - Tuesday, 20 December 2005, 10:35 GMT

New version of the patch has SDL audio support.
Comment by Linus Nielsen (linus_nielsen) - Tuesday, 20 December 2005, 22:34 GMT

I tried it, and it looks really good. A few comments:

1) All LCD's but the H300 main LCD are inverted for me

2) The configure default is not (S) as the prompt says, but
still (X)

3) It doesn't compile for the Archos targets

4) Sound didn't work for me (libsdl1.2debian-oss)

5) Would it be possible to double the pixel size, like the
X11 version?
Comment by Nathan Hand (nathanh) - Wednesday, 21 December 2005, 09:30 GMT

Latest patch fixes the inverted colours, the configure
default is now (S), and the image is zoomed by default.
Comment by Nathan Hand (nathanh) - Wednesday, 21 December 2005, 10:40 GMT

Latest patch fixes the Archos builds (and the other builds
as well). Also fixes more colour problems.
Comment by Nathan Hand (nathanh) - Thursday, 22 December 2005, 10:16 GMT

Latest patch should build on win32/cygwin (NB: I'd appreciated testers). Uses
sdl-config to avoid hard-coding the SDL include paths.
Comment by Nathan Hand (nathanh) - Thursday, 22 December 2005, 10:27 GMT

Latest patch uses Nick Lanham's SDL sound code, which
apparently works, as opposed to my sound code, which
apparently didn't :-)

Loading...