浏览代码

don't use C++ extensions

Jeffery Myers 4 月之前
父节点
当前提交
4d8a618429
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      rlImGui.cpp

+ 2 - 2
rlImGui.cpp

@@ -94,7 +94,7 @@ void ImGui_ImplRaylib_FreeBackendData()
 Vector2 GetDisplayScale()
 Vector2 GetDisplayScale()
 {
 {
 #if defined(__EMSCRIPTEN__)
 #if defined(__EMSCRIPTEN__)
-    return Vector2Ones;
+    return Vector2{ 1,1 };
 #else
 #else
     return GetWindowScaleDPI();
     return GetWindowScaleDPI();
 #endif
 #endif
@@ -684,7 +684,7 @@ void ImGui_ImplRaylib_Shutdown()
 
 
             texture->BackendUserData = nullptr;
             texture->BackendUserData = nullptr;
             texture->Status = ImTextureStatus_Destroyed;
             texture->Status = ImTextureStatus_Destroyed;
-			texture->SetTexID(ImTextureID_Invalid);
+            texture->SetTexID(ImTextureID_Invalid);
         }
         }
     }
     }