#46 Subwindow sizes are wrong upon creation.

closed-duplicate
None
5
2005-06-02
2004-06-05
gloume
No

glutCreateSubWindow sets the subwindow size to the size
of the first window created. The positioning within the
parent window is off too.

Discussion

  • Richard Rauch
    Richard Rauch
    2004-07-18

    Logged In: YES
    user_id=854844

    I have never noticed this before, nor in OpenGLUT (a fork
    of freeglut).

    However, it might be related to a WIN32-only bug I see in
    both OpenGLUT and freeglut. Are you using WIN32?

    Can you explain what you mean by saying that the positioning
    "is off"?

     
  • gloume
    gloume
    2004-07-19

    Logged In: YES
    user_id=1057634

    I am on Win32. "is off" just meant that they were not
    positioned where I intended them to be. The same code
    compiled against plain old GLUT produced the correct
    results. I had a single top-level window and two subwindows.
    The first subwindow took up 75% of the width of the parent
    and the second window took up the other 25%. Both were equal
    in height to the parent.

     
  • Richard Rauch
    Richard Rauch
    2004-07-19

    Logged In: YES
    user_id=854844

    Can you be more precise? E.g., estimate pixel offsets?

    When you say the 75% and 25% subwindows were in your one
    parent window, do you mean that that was the intended
    widths? If so, what were the actual widths. Or do you
    mean that those were the actual widths, and if so, what
    were the intended widths?

    It would help immensely if you could provide a small example
    program that demonstrates the behavior.

     
  • gloume
    gloume
    2004-07-19

    Logged In: YES
    user_id=1057634

    The 75% and 25% were the intended widths, meaning I wanted
    one subwindow to take up 75% of the parent window width and
    the other to take up the other 25%. I did the appropriate
    calculations on reshape of the parent window. IIRC freeglut
    just completely ignored the window sizes I set. I do not
    well remember what the problem was with positioning. I do
    not have the code with me right now but I can post it tomorrow.

     
  • Richard Rauch
    Richard Rauch
    2004-07-20

    Logged In: YES
    user_id=854844

    That still laves me with only half the picture:

    You intended 75%/25%. Okay. What did you *get* for window
    size?

    I assume that you are running freeglut 2.2.0. If possible,
    and if you have not already done so, can you try grabbing
    and compiling the "current.tgz" archive, and installing
    that? freeglut evolved quite a bit from the 2.2.0 release,
    and may have modified or fixed this behavior.

    In any case, I'll look forward to seeing a sample program
    that shows the behavior.

    Thanks a lot for fileing the bug report and taking the
    time answer my questions. It helps a lot.

     
  • gloume
    gloume
    2004-08-14

    Logged In: YES
    user_id=1057634

    At long last, I have uploaded a sample!

    http://www.hnetinc.com/UserSites/Oscar/temp/freeglut_error.zip

    I was compiling against 2.2.0, so the problem may have been
    fixed. Hope this helps!

     
  • gloume
    gloume
    2004-08-14

    Logged In: YES
    user_id=1057634

    At long last, I have uploaded a sample!

    http://www.hnetinc.com/UserSites/Oscar/temp/freeglut_error.zip

    I was compiling against 2.2.0, so the problem may have been
    fixed. Hope this helps!

     
  • Richard Rauch
    Richard Rauch
    2004-08-26

    Logged In: YES
    user_id=854844

    Just a note to let you know that the upload has been seen.
    (^& I have not examined it yet, as it sounds like it is
    probably WIN32-specific and I don't turn on my sole WIN32
    machine very often.

    Thanks for providing the example, though.

     
    • assigned_to: nobody --> puggles
    • status: open --> closed-duplicate