Results 1 to 3 of 3

Thread: Flickiring in Fullscreen

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2009
    Location
    Cairo,Egypt
    Posts
    19

    Flickiring in Fullscreen

    hi all,
    Does anyone know how to stop the flickiring in fullscreen?, at first in normal mode,there wasnt any flickiring,i used this code in the main method to display the output in fullscreen,
    glutDisplayFunc(drawSolarSystem); // register redraw function
    bool fullScreen=true;
    glutFullScreen();
    DEVMODE devModeScreen;
    memset(&devModeScreen,0,sizeof(devModeScreen)) ;
    devModeScreen.dmSize=sizeof(devModeScreen);
    devModeScreen.dmPelsWidth=glutGet(GLUT_SCREEN_WIDT H);
    devModeScreen.dmPelsHeight=glutGet(GLUT_SCREEN_HEI GHT);
    devModeScreen.dmBitsPerPel=16;//getScreenBpp();
    devModeScreen.dmFields=DM_PELSWIDTH|DM_PELSHEIGHT| DM_BITSPERPEL;
    if((ChangeDisplaySettings(&devModeScreen,CDS_F ULLSCREEN)!=DISP_CHANGE_SUCCESSFUL))
    fullScreen=false;

    Thanks,
    Ahmed.

  2. #2
    Senior Member Frequent Contributor scratt's Avatar
    Join Date
    May 2008
    Location
    Thailand
    Posts
    555

    Re: Flickiring in Fullscreen

    http://www.cs.arizona.edu/classes/cs...dblbuffer.html

    You may also look into V-Sync-ing to stop "tearing" once you have double buffering working.

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2009
    Location
    Cairo,Egypt
    Posts
    19

    Re: Flickiring in Fullscreen

    it's working ,thanks alot

Similar Threads

  1. FullScreen PPC
    By ffelagund in forum OpenGL ES
    Replies: 0
    Last Post: 05-10-2005, 05:11 AM
  2. fullscreen
    By helda in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-03-2003, 01:52 PM
  3. Fullscreen
    By Tresher in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 08-13-2002, 07:33 AM
  4. Fullscreen in cpw
    By a_danne in forum OpenGL: General
    Replies: 2
    Last Post: 03-19-2002, 08:42 AM
  5. FullScreen?
    By Andrea Rossini in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-12-2002, 06:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean