title: My window is sizing up in OpenGL
body: <p>I want to make the size of my window (800,800), however the GL command</p>
  
  <pre><code>glutInitWindowSize(800, 500); 
  </code></pre>
  
  <p>Isn't effecting my code in any way. Bellow is the source code in its entirety.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;X11/X.h&gt;
  #include &lt;X11/Xlib.h&gt;
  #include &lt;GL/gl.h&gt;
  #include &lt;GL/glx.h&gt;
  #include &lt;GL/glu.h&gt;
  #include &lt;GL/glut.h&gt;
  #include &lt;iostream&gt;
  #include &lt;math.h&gt;
  using namespace std;
  
  struct point{
  
  GLfloat x;
  GLfloat y;
  
  };
  
  float a,b;
  
  void initGL() {
     // Set "clearing" or background color
     glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // Black and opaque
  }
  
  /* Handler for window-repaint event. Call back when the window first appears and
     whenever the window needs to be re-painted. */
  void display() {
     glClear(GL_COLOR_BUFFER_BIT);   // Clear the color buffer with current clearing color
  //  glutInitWindowSize(800, 800); 
  
  float i;
  float radians;
  struct point graph[1000];
  struct point graphC[1000];
  
  for(i = 0.0; i &lt; 1000.0; i++) {
    graph[(int)i].x = i/1000.0;
    graph[(int)i].y = sqrt(pow(i/100,3) + a*i/100.0 + b)/10.0;
    graphC[(int)i].x = i/1000;
    graphC[(int)i].y = -1*sqrt(pow(i/100,3) + a*i/100.0 + b)/10.0;
  }
  
  glBegin(GL_POINTS);
  
  for(int j = 0; j &lt; 1000; j ++){
      glColor3f(1.0f, 0.0f, 0.0f);
      glVertex2f(graph[j].x,graph[j].y);
      glColor3f(1.0f, 0.0f, 0.0f);
      glVertex2f(graphC[j].x,graphC[j].y);
  }
  
  glEnd();
  
  for(i = 0.0; i &gt; -1000.0; i--) {
    graph[-1*(int)i].x = i/1000.0;
    graph[-1*(int)i].y = sqrt(pow(i/100,3) + a*i/100.0 + b)/10.0;
    graphC[-1*(int)i].x = i/1000;
    graphC[-1*(int)i].y = -1*sqrt(pow(i/100,3) + a*i/100.0 + b)/10.0;
  }
  
  glBegin(GL_POINTS);
  
  for(int j = 0; j &lt; 1000; j ++){
      glColor3f(1.0f, 0.0f, 0.0f);
      glVertex2f(graph[j].x,graph[j].y);
          glColor3f(1.0f, 0.0f, 0.0f);
          glVertex2f(graphC[j].x,graphC[j].y);
      }
  
      glEnd();
  
     glFlush();  // Render now
  
  }
  
  /* Main function: GLUT runs as a console application starting at main()  */
  int main(int argc, char** argv) {
  cout&lt;&lt;"Please enter in a\n";
  cin&gt;&gt;a;
  cout&lt;&lt;"Please enter in b\n";
  cin&gt;&gt;b;
     glutInit(&amp;argc, argv);          // Initialize GLUT
     glutCreateWindow("Scientific Plot");  // Create window with the given title
     glutInitWindowSize(800, 500);   // Set the window's initial width &amp; height
     glutInitWindowPosition(400, 400); // Position the window's initial top-left corner
     glutDisplayFunc(display);       // Register callback handler for window re-paint event
     initGL();                       // Our own OpenGL initialization
     glutMainLoop();                 // Enter the event-processing loop
     return 0;
  }
  </code></pre>