You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's another bug that appears on Windows (7) while using Mono, but not while using .NET. (Not yet tested on Linux.)
Setting WindowBorder to Fixed from either Resizable or Hidden increases both the height & width of the window by 4 pixels each, instead of staying the same as expected. (This does not happen while switching between Resizable and Hidden - only Fixed.)
I'm trying to track this one down myself. Here's what I've learned so far. Most of the relevant code is in WinGLNative.cs in WindowBorder-set.
The value of 'rect' is identical on Mono and .NET, before and after the call to Functions.AdjustWindowRectEx. This doesn't seem to be the source of the problem.
When the bug happens, ClientSize changes when SetWindowLong and SetWindowPos are called.
.NET and Mono report different window styles for the final 'new_style' when setting to WindowBorder.Fixed. The integer value of new_style is identical, however. Under .NET it is "Tiled, MinimizeBox, SystemMenu, Caption, ClipChildren, ClipSiblings", and under Mono it is "MinimizeBox, SystemMenu, Caption, ClipChildren, ClipSiblings" - Tiled is missing. I realize that TILED/OVERLAPPED have a value of zero and might be treated as defaults, but I'll note this here anyway. The fact that the int value of new_style doesn't change between runtimes suggests that there might be nothing to this after all.
That's where I am now. I suppose the next step is to learn just what SetWindowLong is doing with regards to the style, and how that might be different from one runtime to the next.
Here's another bug that appears on Windows (7) while using Mono, but not while using .NET. (Not yet tested on Linux.)
Setting WindowBorder to Fixed from either Resizable or Hidden increases both the height & width of the window by 4 pixels each, instead of staying the same as expected. (This does not happen while switching between Resizable and Hidden - only Fixed.)
Code to reproduce:
The text was updated successfully, but these errors were encountered: