*** empty log message ***
This commit is contained in:
parent
bf72447cec
commit
5aae56dfcc
|
@ -313,7 +313,8 @@ bool createWindow(const char * title, int x, int y, int width, int height, bool
|
||||||
printf("Created window\n");
|
printf("Created window\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ShowWindow(hwnd, SW_SHOWNORMAL);
|
//ShowWindow(hwnd, SW_SHOWNORMAL);
|
||||||
|
ShowWindow(hwnd, SW_SHOW);
|
||||||
UpdateWindow(hwnd);
|
UpdateWindow(hwnd);
|
||||||
SetForegroundWindow(hwnd);
|
SetForegroundWindow(hwnd);
|
||||||
SetFocus(hwnd);
|
SetFocus(hwnd);
|
||||||
|
@ -390,3 +391,31 @@ JNIEXPORT void JNICALL Java_org_lwjgl_Window_tick
|
||||||
{
|
{
|
||||||
handleMessages(env, obj);
|
handleMessages(env, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Class: org_lwjgl_Window
|
||||||
|
* Method: minimize
|
||||||
|
* Signature: ()V
|
||||||
|
*/
|
||||||
|
JNIEXPORT void JNICALL Java_org_lwjgl_Window_minimize
|
||||||
|
(JNIEnv * env, jobject obj)
|
||||||
|
{
|
||||||
|
if (isMinimized)
|
||||||
|
return;
|
||||||
|
ShowWindow(hwnd, SW_MINIMIZE);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Class: org_lwjgl_Window
|
||||||
|
* Method: minimize
|
||||||
|
* Signature: ()V
|
||||||
|
*/
|
||||||
|
JNIEXPORT void JNICALL Java_org_lwjgl_Window_restore
|
||||||
|
(JNIEnv * env, jobject obj)
|
||||||
|
{
|
||||||
|
if (!isMinimized)
|
||||||
|
return;
|
||||||
|
|
||||||
|
ShowWindow(hwnd, SW_RESTORE);
|
||||||
|
}
|
||||||
|
|
|
@ -214,5 +214,5 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_nDestroyGL
|
||||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_swapBuffers
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_BaseGL_swapBuffers
|
||||||
(JNIEnv *, jobject)
|
(JNIEnv *, jobject)
|
||||||
{
|
{
|
||||||
SwapBuffers(wglGetCurrentDC());
|
wglSwapLayerBuffers(hdc, WGL_SWAP_MAIN_PLANE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue