DX Slideshow bug...?

This topic is 4805 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Hey, I was just trying to create a simple slide show with DirectX 9 but it's not turning out the way I want it to. I want it so every 2 seconds it changes the picture. Well it's just sitting on the first picture and not loading the next set of pictures. Here's my set of code:
int time = GetTickCount();
if(time <= 2000)
{
}
if(time >= 4000)
{
ZeroMemory(&bkgrd, sizeof(bkgrd));
if(time <= 8000)
{
}
}
if(time >= 8001)
{
}

Why is it not switching over to rays7.jpg? I've test loaded them all before I tried timing them to load and they worked fine. So I'm assuming it's with my timing code. But is the problem? Thanks in advance.