]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/gdicmn.cpp
use the native msg box if available, fall back to wxWin one instead of doing the...
[wxWidgets.git] / src / common / gdicmn.cpp
index 7a1eae5c800bfe9861b4f8df93aee961fae0cded..4e35df6256aef91de8f62dfdce132dc50c971454 100644 (file)
 #pragma implementation "gdicmn.h"
 #endif
 
+#ifdef __VMS
+#define XtDisplay XTDISPLAY
+#endif
+
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -63,8 +67,8 @@ wxRect::wxRect(const wxPoint& topLeft, const wxPoint& bottomRight)
 {
   x = topLeft.x;
   y = topLeft.y;
-  width = bottomRight.x - topLeft.x;
-  height = bottomRight.y - topLeft.y;
+  width = bottomRight.x - topLeft.x + 1;
+  height = bottomRight.y - topLeft.y + 1;
 
   if (width < 0)
   {