Advertisement

GLUT Fullscreen / Window mode switch

Started by March 17, 2004 09:50 AM
-1 comments, last by goosematt 20 years, 11 months ago
having this problem, whereby when i switch from glutFullScreen() back to glutReshapeWindow(width, height) i lose the title and scroll bars (just generally window properties like minimize, maximize, close etc) im doing it all on a key press ''w'', just a simple increment of the size of screen:

    case 87:
    case 119: /* Window size (Additional) : w/W */
      if (width == 640)
       {
	 width = 800;
	 height = 600;
	 glutReshapeWindow(width, height); 
       }
       else if (width == 800)
       {
	 width = 1024;
	 height = 768;
	 glutReshapeWindow(width, height);
       }
       else if (width == 1024)
       {
	 glutFullScreen();
       }
       else
       {
	 width = 640;
	 height = 480;
	 glutReshapeWindow(width, height);
       }
       break;
 
erm ive looked EVERYWHERE, and i cant find a solution, ive posted lots of threads EVERYWHERE, and everyone seems either not bothered or baffled LOL, is it just me?! do i smell or summat?! --Chris

This topic is closed to new replies.

Advertisement