mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-08 07:54:05 +00:00
call InitCommonControls if no display has been created prior to Alert
This commit is contained in:
parent
2e07a03a4e
commit
63ed7b268e
2 changed files with 9 additions and 0 deletions
|
|
@ -94,9 +94,13 @@ final class WindowsSysImplementation extends DefaultSysImplementation {
|
|||
}
|
||||
|
||||
public void alert(String title, String message) {
|
||||
if(!Display.isCreated()) {
|
||||
initCommonControls();
|
||||
}
|
||||
nAlert(getHwnd(), title, message);
|
||||
}
|
||||
private static native void nAlert(long parent_hwnd, String title, String message);
|
||||
private static native void initCommonControls();
|
||||
|
||||
public boolean openURL(final String url) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue