equal
deleted
inserted
replaced
365 thisObj = NW_Image_Epoc32SimpleOf (image); |
365 thisObj = NW_Image_Epoc32SimpleOf (image); |
366 CEpoc32ImageDecoder* decoder = STATIC_CAST(CEpoc32ImageDecoder*, thisObj->decoder); |
366 CEpoc32ImageDecoder* decoder = STATIC_CAST(CEpoc32ImageDecoder*, thisObj->decoder); |
367 |
367 |
368 /* If there is a decoder, then the image needs to be decoded before displaying |
368 /* If there is a decoder, then the image needs to be decoded before displaying |
369 * if not done already, or if "needsDecode" (animated image has moved on to |
369 * if not done already, or if "needsDecode" (animated image has moved on to |
370 * next frame). |
370 * next frame). Also, image is to be decoded based on the state of the decoder |
371 */ |
371 */ |
372 if (decoder != NULL && (thisObj->bitmap == NULL || thisObj->needsDecode)) |
372 if (decoder != NULL && (thisObj->bitmap == NULL || thisObj->needsDecode || |
|
373 (decoder->getDecoderState() != CEpoc32ImageDecoder::ID_DECODE_COMPLETE)&& |
|
374 (decoder->getDecoderState() != CEpoc32ImageDecoder::ID_DECODING))) |
373 { |
375 { |
374 decoder->Decode(); |
376 decoder->Decode(); |
375 } |
377 } |
376 |
378 |
377 /* If there is already a bitmap, draw it. When the results of the decode operation |
379 /* If there is already a bitmap, draw it. When the results of the decode operation |