• Status Closed
  • Percent Complete
  • Task Type Patches
  • Category User Interface → Simulator
  • Assigned To No-one
  • Operating System
  • Severity Low
  • Priority Very Low
  • Reported Version Unstable (example)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by nathanh - 2005-12-19
Last edited by bagder - 2006-01-09

FS#2850 - sdl uisimulator

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.

Closed by  bagder
2006-01-09 11:23
Reason for closing:  Accepted

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

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

But it works well enough to be useful, so here it is.

New version of the patch draws dots directly to the surface.

New version of the patch has SDL audio support.

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?

Latest patch fixes the inverted colours, the configure
default is now (S), and the image is zoomed by default.

Latest patch fixes the Archos builds (and the other builds
as well). Also fixes more colour problems.

Latest patch should build on win32/cygwin (NB: I'd appreciated testers). Uses
sdl-config to avoid hard-coding the SDL include paths.

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


Available keyboard shortcuts


Task Details

Task Editing