Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#421 closed defect/bug (fixed)

sdl-image can't handle color names in xpm

Reported by: sera Owned by: KaZeR
Priority: major Milestone:
Component: core Version: git master
Severity: Keywords: xpm sdl
Cc:

Description

With navit and sdl graphics or sdl-image's showimage I get:

Couldn't load fastfood.xpm: colour parse error
Couldn't load gc_event.xpm: colour parse error
Couldn't load gc_multi.xpm: colour parse error
Couldn't load gc_question.xpm: colour parse error
Couldn't load gc_reference.xpm: colour parse error
Couldn't load gc_stages.xpm: colour parse error
Couldn't load gc_tradi.xpm: colour parse error
Couldn't load gc_webcam.xpm: colour parse error
Couldn't load gui_sound_32.xpm: colour parse error
Couldn't load gui_sound_off_32.xpm: colour parse error
Couldn't load library.xpm: colour parse error
Couldn't load pharmacy.xpm: colour parse error
Couldn't load tower.xpm: colour parse error
Couldn't load unknown.xpm: colour parse error

The reason is sdl-image only knows about the colors none, black, white, red, green and blue. Every other color needs to be specified as an rgb value.

Attached is a patch witch translates color names unknown by sdl-image into their rgb representation for the xpms currently in svn.

Attachments (1)

navit_sdl_xpm.patch (9.1 KB) - added by sera 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by sera

comment:1 Changed 11 years ago by kazer

  • Resolution set to fixed
  • Status changed from new to closed

Patch applied in rev 2479, thank you :)

comment:2 Changed 11 years ago by kazer

It looks like i missed some files in previous commit. Should be fixed in r2484

comment:3 Changed 11 years ago by kazer

In fact my local tree was out of sync. Fixed in r2485

Note: See TracTickets for help on using tickets.