help me. resolution change

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
charmzine
Posts: 3
Joined: Sat Dec 09, 2006 1:15 am

help me. resolution change

Post by charmzine »

hi..
i can't speak english well please understand me.

I've changed resolution from 1280 * 1024 to 1024 * 768
then irrlicht looks like losing its hwnd.
there was just a clear window in the screen.
isn't there any method to solve this problem?

void ResolutionChange(int Width,int Height) {
DEVMODE dev;
memset(&dev,0,sizeof(DEVMODE));
dev.dmSize=sizeof(DEVMODE);
dev.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT;
dev.dmPelsWidth = Width;
dev.dmPelsHeight = Height;
ChangeDisplaySettings(&dev, UPDATEREGISTRY);
}

//maincode
// 1280 * 1240
ResolutionChange(1024, 768)
// change 1024 * 768
// irrlicht clear window(transparent window)

help me please
bgsteffens
Posts: 39
Joined: Wed Oct 04, 2006 8:00 am

Post by bgsteffens »

Do you have it running in full screen? I'm not sure, but I'd imagine ResolutionChange would be for a full screen application; but since you say you can see the transparent window it sounds like it's windowed.
charmzine
Posts: 3
Joined: Sat Dec 09, 2006 1:15 am

help me

Post by charmzine »

i want full screen mode to window mode
and Window mode to full screen mode

how to???

english is difficult T-T
bgsteffens
Posts: 39
Joined: Wed Oct 04, 2006 8:00 am

Post by bgsteffens »

Well, you could always recreate the Irrlicht device when a resolution change needs to occur.
Post Reply