fix warnings in window scale

This commit is contained in:
Robert 2023-01-28 01:21:51 +01:00
parent 472a4c5e13
commit cab7fad7d4
2 changed files with 1 additions and 4 deletions

View file

@ -109,8 +109,7 @@ Application::~Application()
bool Application::Update() bool Application::Update()
{ {
if (window->GetScale() != scale) window->SetScale(scale);
window->SetScale(scale);
glfwPollEvents(); glfwPollEvents();

View file

@ -12,7 +12,6 @@ public:
Window(uint16_t width, uint16_t height, const std::string& title); Window(uint16_t width, uint16_t height, const std::string& title);
~Window(); ~Window();
inline int GetScale() { return scale; }
inline bool ShouldClose() { return glfwWindowShouldClose(handle); } inline bool ShouldClose() { return glfwWindowShouldClose(handle); }
inline GLFWwindow* GetNativeWindow() { return handle; } inline GLFWwindow* GetNativeWindow() { return handle; }
@ -22,6 +21,5 @@ public:
void End(); void End();
private: private:
int scale = -1;
GLFWwindow* handle; GLFWwindow* handle;
}; };