]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/dcpsg.cpp
compilation fixes for wxGTK1 after wxTextEntry changes (unit test still fails, Replac...
[wxWidgets.git] / src / generic / dcpsg.cpp
index e978a7dba0d76ccdb62976b6329b11f274915dfe..f8e57a0836fd16ea707b6b14d626d0b615eeaefc 100644 (file)
@@ -737,6 +737,9 @@ void wxPostScriptDC::DoDrawLines (int n, wxPoint points[], wxCoord xoffset, wxCo
 void wxPostScriptDC::DoDrawRectangle (wxCoord x, wxCoord y, wxCoord width, wxCoord height)
 {
     wxCHECK_RET( m_ok, wxT("invalid postscript dc") );
+    
+    width--;
+    height--;
 
     if (m_brush.GetStyle () != wxTRANSPARENT)
     {
@@ -789,6 +792,9 @@ void wxPostScriptDC::DoDrawRoundedRectangle (wxCoord x, wxCoord y, wxCoord width
 {
     wxCHECK_RET( m_ok, wxT("invalid postscript dc") );
 
+    width--;
+    height--;
+
     if (radius < 0.0)
     {
         // Now, a negative radius is interpreted to mean
@@ -868,6 +874,9 @@ void wxPostScriptDC::DoDrawEllipse (wxCoord x, wxCoord y, wxCoord width, wxCoord
 {
     wxCHECK_RET( m_ok, wxT("invalid postscript dc") );
 
+    width--;
+    height--;
+
     if (m_brush.GetStyle () != wxTRANSPARENT)
     {
         SetBrush (m_brush);