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
It fails to clear the graphics window after the resize.
It sets the wrong size: apparently Windows takes the given size to incude the borders and the title bar, while we expect the given size to be the content size.
BTW, open_graph has the same bug when the user specifies a size.
Since size_x() and size_y() return the size without the borders, it is possible to know how many pixels to add — probably computing this a single time when Graphics is loaded is enough? There may be a better solution though.
No one on the OCaml dev team is motivated enough to work on this feature wish, so I'm putting it in the "suspended" state. If anyone is willing to work on it, an (improved) patch is welcome.
Original bug ID: 4755
Reporter: @ygrek
Status: resolved (set by @xavierleroy on 2012-03-14T09:31:17Z)
Resolution: suspended
Priority: normal
Severity: feature
OS: Win32
Version: 3.11.0
Category: platform support (windows, cross-compilation, etc)
Monitored by: @Chris00
Bug description
Currently it does nothing.
Patch below.
Additional information
--- D:\contrib\ocaml-cvs\ocaml\otherlibs\win32graph\open.c 2007-11-06 17:16:56.000000000 +0200
+++ open.c 2009-03-25 15:50:20.186082800 +0200
@@ -306,7 +306,7 @@
{
gr_check_open ();
SetWindowPos( grwindow.hwnd, NULL, 0, 0, Int_val(vx), Int_val(vy), SWP_NOMOVE | SWP_NOZORDER);
return Val_unit;
}
The text was updated successfully, but these errors were encountered: