I have an IMAGE widget. The associated bitmap could change at runtime. I use IMAGE_SetBitmap() for that in the main loop.
I'd like to avoid calling IMAGE_SetBitmap() if the bitmap is already correct. The immediate solution is to use a variable:
I could avoid using the variable image_shown if the IMAGE widget API supports a IMAGE_GetBitmap() function, but it's not the case. I think it could be a good functionality to add. In this case, I could write:
Maybe I miss something?
I'd like to avoid calling IMAGE_SetBitmap() if the bitmap is already correct. The immediate solution is to use a variable:
I could avoid using the variable image_shown if the IMAGE widget API supports a IMAGE_GetBitmap() function, but it's not the case. I think it could be a good functionality to add. In this case, I could write:
Maybe I miss something?