Hello all. I'm trying to do a simple fade-out of a menu screen, and my thinking was that I would use the opacity setting in the GDBLTFASTFX structure as so:
--------------------
GDBLTFASTFX gdbltfastfx;
gdbltfastfx.dwFXopacity = fade_value;
backbuffer.BltFast(xl_title, 1, menu_title, NULL, GDBLTFAST_KEYSRC | GDBLTFAST_FXOPACITY, &gdbltfastfx;);
// other blts for the menu are here, left out for brevity
if (fadingout) {
fade_value--;
if (fade_value == 0) { switchscreens(); }
}
--------------------
fade_value starts out at 255 before this. I thought this work would, however, when I run this code, none of my blts do anything. If I remove the GDBLTFAST_FXOPACITY flag, everything works, except for the fading (as one would expect).
Any ideas why the blts do nothing when that flag is set?
Or let me ask it this way: what incredibly stupid and obvious mistake am I making here?!?
In my defense, I had to be in to work at 6am this morning, and before today I wasn't even aware there WAS a 6am in the morning
--------------------
GDBLTFASTFX gdbltfastfx;
gdbltfastfx.dwFXopacity = fade_value;
backbuffer.BltFast(xl_title, 1, menu_title, NULL, GDBLTFAST_KEYSRC | GDBLTFAST_FXOPACITY, &gdbltfastfx;);
// other blts for the menu are here, left out for brevity
if (fadingout) {
fade_value--;
if (fade_value == 0) { switchscreens(); }
}
--------------------
fade_value starts out at 255 before this. I thought this work would, however, when I run this code, none of my blts do anything. If I remove the GDBLTFAST_FXOPACITY flag, everything works, except for the fading (as one would expect).
Any ideas why the blts do nothing when that flag is set?
Or let me ask it this way: what incredibly stupid and obvious mistake am I making here?!?