amiga: Try and catch the last content rework for amiga
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
865844ede7
commit
040d558d39
|
@ -189,7 +189,8 @@ bool amiga_dt_anim_convert(struct content *c)
|
|||
|
||||
plugin->bitmap = amiga_bitmap_create(width, height, bm_flags);
|
||||
if (!plugin->bitmap) {
|
||||
msg_data.error = messages_get("NoMemory");
|
||||
msg_data.errordata.errorcode = NSERROR_NOMEM;
|
||||
msg_data.errordata.errormsg = messages_get("NoMemory");
|
||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -186,7 +186,8 @@ static struct bitmap *amiga_dt_picture_cache_convert(struct content *c)
|
|||
{
|
||||
bitmap = amiga_bitmap_create(c->width, c->height, BITMAP_NEW);
|
||||
if (!bitmap) {
|
||||
msg_data.error = messages_get("NoMemory");
|
||||
msg_data.errordata.errorcode = NSERROR_NOMEM;
|
||||
msg_data.errordata.errorcode = messages_get("NoMemory");
|
||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -166,7 +166,8 @@ bool amiga_icon_convert(struct content *c)
|
|||
|
||||
if(dobj == NULL)
|
||||
{
|
||||
msg_data.error = messages_get("NoMemory");
|
||||
msg_data.errordata.errorcode = NSERROR_NOMEM;
|
||||
msg_data.errordata.errormsg = messages_get("NoMemory");
|
||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||
return false;
|
||||
}
|
||||
|
@ -186,14 +187,16 @@ bool amiga_icon_convert(struct content *c)
|
|||
|
||||
icon_c->bitmap = amiga_bitmap_create(width, height, BITMAP_NEW);
|
||||
if (!icon_c->bitmap) {
|
||||
msg_data.error = messages_get("NoMemory");
|
||||
msg_data.errordata.errorcode = NSERROR_NOMEM;
|
||||
msg_data.errordata.errormsg = messages_get("NoMemory");
|
||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||
if(dobj) FreeDiskObject(dobj);
|
||||
return false;
|
||||
}
|
||||
imagebuf = (ULONG *) amiga_bitmap_get_buffer(icon_c->bitmap);
|
||||
if (!imagebuf) {
|
||||
msg_data.error = messages_get("NoMemory");
|
||||
msg_data.errordata.errorcode = NSERROR_NOMEM;
|
||||
msg_data.errordata.errormsg = messages_get("NoMemory");
|
||||
content_broadcast(c, CONTENT_MSG_ERROR, &msg_data);
|
||||
if(dobj) FreeDiskObject(dobj);
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue