Native window decorations: avoid using C-runtime, which reduces the DLL size from 100kb to 8kb

This commit is contained in:
Karl Tauber
2021-03-06 12:01:49 +01:00
parent 144d65c776
commit 8734b062dc
7 changed files with 308 additions and 17 deletions

View File

@@ -15,6 +15,7 @@
*/
#include <windows.h>
#include "HWNDMap.h"
/**
* @author Karl Tauber
@@ -31,7 +32,7 @@ private:
static jmethodID isFullscreenMID;
static jmethodID fireStateChangedLaterOnceMID;
static std::map<HWND, FlatWndProc*> hwndMap;
static HWNDMap* hwndMap;
JavaVM* jvm;
JNIEnv* env; // attached to AWT-Windows/Win32 thread