|
|||
|
Hi.
I'd like to know how to change the screen resolution. I used this code to change the screen resolution to 1024x768 : //get the current display setting var ds = SysInfo.displaySetting; trace(ds. pelsWidth); trace(ds. pelsHeight); trace(ds. bitsPerPel); trace(ds. displayFrequency); //change the current display setting; ds.pelsWidth = 1024; ds.pelsHeight = 768; ds.test = true; SysInfo.displaySetting = ds; trace(ds. pelsWidth); trace(ds. pelsHeight); trace(ds. bitsPerPel); trace(ds. displayFrequency); The trace function prints "1024 and 768" but my screen stay in the old resolution (1280x1024)... i don't understand. What is it necessary to do ? Thank you. |
|
|||
|
Hi,
please check the "test" property of the ds object after you have changed the screen resolution. trace(ds.test); if (ds.test == 1) trace("The computer must be restarted in order for the graphics mode to work"); We will use DirectX to change the screen resolution in the next version and you won't get the trouble again. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|