Yes.  It's in "freeglut_window.c" around line 517, in the Windows-specific "fgOpenWindow" code.  You will find similar code in "freeglut_main.c" around line 124, again Windows-specific.  (We really should combine the two.)

In both places the width and height are being increased by the border sizes to make them X-compatible.  Sorry, but this is a blind alley.

John F. Fay
-----Original Message-----
From: [] On Behalf Of Steve Baker

Sent: Friday, October 15, 2004 4:00 PM
Subject: Re: [Freeglut-developer] RE: [Freeglut-bugs] freeglut_window.c problem

Richard Rauch wrote:
> On Fri, Oct 15, 2004 at 01:42:57PM -0600, Brian Paul wrote:
>>I'd check that you're not trying to set a window width or height to
>>zero - that's illegal.
> Hm.  That makes sense, but why would it work for him locally, but not
> remotely?  Unless he's using computer window sizes based on border
> widths and screen dimensions...

Isn't there some code somewhere in freeglut that attempts to resolve
a problem with the window size with and without borders in Windows
and Linux?   I vaguely recall that someone patched something to do
with window sizes in order to fix that.

If that patch entailed subtracting something from the window size to
compensate for the borders - then we could very well end up with a
zero-sized window if the border thicknesses were different on the
two systems.

Does anyone remember anything about that?

---------------------------- Steve Baker -------------------------
HomeEmail: <>    WorkEmail: <>
HomePage :
Projects :
GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M-
V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++

This email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
Freeglut-developer mailing list