Bläddra i källkod

Fixed resize event.

bkaradzic 13 år sedan
förälder
incheckning
1e459d23c3
1 ändrade filer med 5 tillägg och 7 borttagningar
  1. 5 7
      examples/common/entry_windows.cpp

+ 5 - 7
examples/common/entry_windows.cpp

@@ -327,6 +327,8 @@ namespace entry
 							, (rect.bottom-rect.top)
 							, SWP_SHOWWINDOW
 							);
+
+						m_eventQueue.postSizeEvent(m_width, m_height);
 					}
 					return 0;
 
@@ -335,13 +337,9 @@ namespace entry
 						uint32_t width = GET_X_LPARAM(_lparam);
 						uint32_t height = GET_Y_LPARAM(_lparam);
 
-						if (m_width != width
-						||  m_height != height)
-						{
-							m_width = width;
-							m_height = height;
-							m_eventQueue.postSizeEvent(m_width, m_height);
-						}
+						m_width = width;
+						m_height = height;
+						m_eventQueue.postSizeEvent(m_width, m_height);
 					}
 					break;