*/}}
YimingWu 5 ヶ月 前
コミット
47f4d5bf4a
2 ファイル変更3 行追加2 行削除
  1. 1 1
      la_interface.h
  2. 2 1
      la_kernel.c

+ 1 - 1
la_interface.h

@@ -146,7 +146,7 @@
 #define XK_F11 11
 #define XK_F12 12
 #endif
-#ifdef LA_LINUX
+#if defined(LA_LINUX) || defined(_WIN32)
 #define LA_KEY_F1        XK_F1
 #define LA_KEY_F2        XK_F2
 #define LA_KEY_F3        XK_F3

+ 2 - 1
la_kernel.c

@@ -567,10 +567,11 @@ int la_CreateSystemWindow(laWindow *window, int SyncToVBlank){
     SYSWINDOW hwnd = la_CreateWindowX11(window->X, window->Y, window->W, window->H, window->Title->Ptr, SyncToVBlank, &glc, egl_surf);
 #endif
 #ifdef _WIN32
-    SYSWINDOW hwnd = la_CreateWindowAndroid();
+    SYSWINDOW hwnd = la_CreateWindowWin32(window->X, window->Y, window->W, window->H, window->Title->Ptr, SyncToVBlank, &glc);
 #endif
 
 #ifdef LAGUI_ANDROID
+    la_CreateWindowAndroid();
     window->win = 1;
     window->glc = MAIN.glc;
 #else