On the one hand this is a bit of genius. On the other hand I think it's quite a bit dangerous code as it creates an exact copy of the bitmap. In other words there are now two engine objects with the same handle. I don't know if that is a good idea. I'd go with JustSids solution. Maybe change the for loop copying the pixel data to a single call of bmap_blit. Speed isn't that important in this case anyways as you shouldn't create hundreds of bitmap copies.


Always learn from history, to be sure you make the same mistakes again...