So I'm making this game, it's 3d, I use fullscreen and I'm trying make it possible to change the resolution of the game.
I'm not trying to make it so that you cahnge the resolution in realtime though. what I want is for the user to set the resolution in the options menu and then they have to restart the game for it to take effect.
here is my code (it's in the camera creation event):
file = ini_open('system/graphics.ini'); sw = ini_read_real('resolution','screen_width',1920); sh = ini_read_real('resolution','screen_height',1080); ini_close(); view_xview = 0; view_yview = 0; view_wview = sw; view_hview = sh; view_xport = 0; view_yport = 0; view_wport = sw; view_hport = sh;
as you can probably see the resolution is taken from an ini file and this works fine. the problem is that when i start the game I only see a small part of what I'm supposed to see (the top left corner). Is there any good explanation for this?
Remember that i'm in 3d mode and use fullscreen.
I have also tried putting the code elsewhere, like draw event and room creation code.
Edited by anatheron, 26 March 2012 - 01:19 PM.