Results 1 to 2 of 2

Thread: Changing resolution

  1. #1

    Changing resolution

    Hi, I have an OpenGL program that has a menu allowing for changing of resolution. However, I cannot get it to change correctly (it seems to change res but the alignment is off the screen).

    I change the .dmPelsWidth and .dmPelsHeight to the new setting then call ChangeDisplaySettings. Do I need to resize the scene and do I have to resize the window? If so, does anyone know how?


  2. #2
    Member Contributor
    Join Date
    Jun 2000

    Re: Changing resolution

    Have you tried calling glViewport after the resize?

    void glViewport(
    GLint x,
    GLint y,
    GLsizei width,
    GLsizei height

    such as:

    void glViewport( 0,0,width,height );

Similar Threads

  1. Changing resolution
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-28-2006, 10:08 AM
  2. Changing Screen Resolution
    By SNX in forum OpenGL: Linux
    Replies: 6
    Last Post: 05-19-2005, 03:58 AM
  3. Changing Resolution
    By Andrew Jameson in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-30-2003, 10:21 AM
  4. changing screen resolution
    By Julien Cayzac in forum OpenGL: Linux
    Replies: 0
    Last Post: 12-09-2001, 04:00 AM
  5. Changing resolution
    By David in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-11-2000, 11:32 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