mncat77 8 ani în urmă
părinte
comite
db49d0ec94
1 a modificat fișierele cu 13 adăugiri și 4 ștergeri
  1. 13 4
      examples/common/entry/entry_windows.cpp

+ 13 - 4
examples/common/entry/entry_windows.cpp

@@ -665,14 +665,23 @@ namespace entry
 							}
 							}
 
 
 							// Recalculate position using different anchor points
 							// Recalculate position using different anchor points
-							switch(_wparam)
+							switch (_wparam)
 							{
 							{
-							case WMSZ_LEFT:
 							case WMSZ_TOPLEFT:
 							case WMSZ_TOPLEFT:
+								rect.left = rect.right - width - m_frameWidth;
+								rect.top = rect.bottom - height - m_frameHeight;
+							  break;
+
 							case WMSZ_TOP:
 							case WMSZ_TOP:
 							case WMSZ_TOPRIGHT:
 							case WMSZ_TOPRIGHT:
-								rect.left = rect.right  - width  - m_frameWidth;
-								rect.top  = rect.bottom - height - m_frameHeight;
+								rect.right = rect.left + width + m_frameWidth;
+								rect.top = rect.bottom - height - m_frameHeight;
+								break;
+
+							case WMSZ_LEFT:
+							case WMSZ_BOTTOMLEFT:
+								rect.left = rect.right - width - m_frameWidth;
+								rect.bottom = rect.top + height + m_frameHeight;
 								break;
 								break;
 
 
 							default:
 							default: