Back again with another question for my custom scene. I have images for my windows, I use them as sprites, but I actually blt their contents to the window itself, and the sprite itself is hidden at all times. I do it this way because it was the first solution I found when involving blt and sprite bitmaps. (I still understand practically nothing about actually working with images, so I stick with the first thing that seems to work.)
An important note, the images are completely redrawn every frame.
When the window is first set up and the image is drawn, everything is fine. But at one point, the window changes size, with one dimension becoming larger than before. However, the drawn image keeps the dimensions of the original window, and doesn't draw the part of the image that was previously outside the window's area. The source image IS larger than the original blt size, and the blt dimensions also reflect the new image size, at least in code. But the rest of the image that should now be visible still isn't being drawn.
I've tried freshly reloading the bitmap through ImageManager, absolutely no change.
Am I missing something fundamental to bitmap drawing? Should I be storing the bitmap elsewhere and using blt on the sprite itself, instead of essentially the other way around?
An important note, the images are completely redrawn every frame.
When the window is first set up and the image is drawn, everything is fine. But at one point, the window changes size, with one dimension becoming larger than before. However, the drawn image keeps the dimensions of the original window, and doesn't draw the part of the image that was previously outside the window's area. The source image IS larger than the original blt size, and the blt dimensions also reflect the new image size, at least in code. But the rest of the image that should now be visible still isn't being drawn.
I've tried freshly reloading the bitmap through ImageManager, absolutely no change.
Am I missing something fundamental to bitmap drawing? Should I be storing the bitmap elsewhere and using blt on the sprite itself, instead of essentially the other way around?