Do anyone know how to make the program fullscreen when F1 key is pressed?
when i look at the code from morrowland, it write like this :
if (keys[VK_F1]) // Is F1 Being Pressed?
{
keys[VK_F1]=FALSE; // If So Make Key FALSE
KillGLWindow(); // Kill Our Current Window
fullscreen=!fullscreen; // Toggle Fullscreen / Windowed Mode
if (!CreateGLWindow("APRON TUTORIALS",640,480,16,fullscreen))
{
return 0; // Quit If Window Was Not Created
}
}
but this cant works!:wallbash:
what is the solution??
Fullscreen
Started by PlumBerry, May 05 2006 04:42 AM
3 replies to this topic
#1
Posted 05 May 2006 - 04:42 AM
#2
Posted 05 May 2006 - 05:50 AM
what happens when you try this code? It looks convincing. Do you have the functions CreateGLWindow and KillGLWindow?
#3
Posted 05 May 2006 - 06:20 AM
after F1 being pressed, the window's size still the same, cannot be change into fullscreen..
#4
Posted 26 May 2006 - 07:10 PM
Is fullscreen set to the right value beforehand?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











