fix warnings in window scale
This commit is contained in:
parent
472a4c5e13
commit
cab7fad7d4
|
@ -109,8 +109,7 @@ Application::~Application()
|
||||||
|
|
||||||
bool Application::Update()
|
bool Application::Update()
|
||||||
{
|
{
|
||||||
if (window->GetScale() != scale)
|
window->SetScale(scale);
|
||||||
window->SetScale(scale);
|
|
||||||
|
|
||||||
glfwPollEvents();
|
glfwPollEvents();
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue