Check the RAM sprite pool before the ROM sprite pool (fix 1781184)

svn path=/trunk/netsurf/; revision=3628
This commit is contained in:
Richard Wilson 2007-10-09 17:49:48 +00:00
parent e0ac355853
commit 693051471b
1 changed files with 2 additions and 2 deletions

View File

@ -834,11 +834,11 @@ os_error *ro_gui_wimp_get_sprite(const char *name, osspriteop_header **sprite)
if (error) return error;
error = xosspriteop_select_sprite(osspriteop_USER_AREA,
rom_base, (osspriteop_id)name, sprite);
ram_base, (osspriteop_id)name, sprite);
if (error && error->errnum == error_SPRITE_OP_DOESNT_EXIST)
error = xosspriteop_select_sprite(osspriteop_USER_AREA,
ram_base, (osspriteop_id)name, sprite);
rom_base, (osspriteop_id)name, sprite);
return error;
}