Skip to content

Commit

Permalink
Fix Unicode mismatch in win32graph (#1629)
Browse files Browse the repository at this point in the history
The window class is created using RegisterClassA, which means that
the default window procedure should be DefWindowProcA.
  • Loading branch information
dra27 authored and xavierleroy committed Feb 24, 2018
1 parent 2d6ed01 commit b2d0255
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ Working version

### Other libraries:

- MPR#7445, GPR#1629: Graphics.open_graph displays the correct window title on
Windows again (fault introduced by 4.06 Unicode changes).
(David Allsopp)

* GPR#1406: Unix.isatty now returns true in the native Windows ports when
passed a file descriptor connected to a Cygwin PTY. In particular, compiler
colors for the native Windows ports now work under Cygwin/MSYS2.
Expand Down
2 changes: 1 addition & 1 deletion otherlibs/win32graph/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static LRESULT CALLBACK GraphicsWndProc(HWND hwnd,UINT msg,WPARAM wParam,
break;
}
caml_gr_handle_event(msg, wParam, lParam);
return DefWindowProc(hwnd, msg, wParam, lParam);
return DefWindowProcA(hwnd, msg, wParam, lParam);
}

int DoRegisterClass(void)
Expand Down

0 comments on commit b2d0255

Please sign in to comment.