Here is a zip for:
6. Screen invalid bug
Reported by SMD_3D Interactive
All media is lost when a full screen application takes control of the screen (screen saver, UAC, CTRL+ALT+DEL with the welcome screen enabled, or switching into/out of a full screen app).
This demonstrates the loss of a single image. Matrixes, sounds, sprites, etc, are all affected.
` Screen invalid is supposed to let us know when media is lost.
` This program is peppered with these checks
` There should be no way of losing this image without us knowing
` I guarentee if you CTRL+ALT+DELETE enough times (with the welcome screen on),
` or if UAC pops up enough times, it will eventually fail on line 19
` Where the image is supposed to be pasted. You can also compile as full screen
` and simply alt-tab in and out repeatedly.
` If it doesn't work properly when every other line checks for the image, how
` are we ever going to get around this issue?
load image "Image.png", 1, 1
do
CheckMedia()
cls
CheckMedia()
paste image 1, 0, 0
CheckMedia()
sync
CheckMedia()
loop
function CheckMedia()
if screen invalid()
load image "Image.png", 1, 1
endif
endfunction
Edit: We are not looking for a way for DBPro to auto-reload all of our media. Just a 100% guaranteed way of knowing when we need to do it ourselves.