fix log
This commit is contained in:
@@ -198,10 +198,8 @@ namespace VE
|
|||||||
glfwSetWindowSizeCallback(m_win, [](GLFWwindow* w, int width, int height)
|
glfwSetWindowSizeCallback(m_win, [](GLFWwindow* w, int width, int height)
|
||||||
{
|
{
|
||||||
auto d = static_cast<win_data*>(glfwGetWindowUserPointer(w));
|
auto d = static_cast<win_data*>(glfwGetWindowUserPointer(w));
|
||||||
hack::log()(d->m_width);
|
|
||||||
d->m_width = width;
|
d->m_width = width;
|
||||||
d->m_height = height;
|
d->m_height = height;
|
||||||
hack::log()(d->m_width);
|
|
||||||
|
|
||||||
event e{ event_type::WINDOW_RESIZE, std::pair<float, float>{ static_cast<float>(width), static_cast<float>(height) } };
|
event e{ event_type::WINDOW_RESIZE, std::pair<float, float>{ static_cast<float>(width), static_cast<float>(height) } };
|
||||||
d->execute(e);
|
d->execute(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user