projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e60553
)
added the recangle fix
author
Stefan Csomor
<csomor@advancedconcepts.ch>
Thu, 26 Oct 2006 06:21:57 +0000
(06:21 +0000)
committer
Stefan Csomor
<csomor@advancedconcepts.ch>
Thu, 26 Oct 2006 06:21:57 +0000
(06:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42428
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/common/dcgraph.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/common/dcgraph.cpp
b/src/common/dcgraph.cpp
index 136775cbad5f5c33120c465a33bd274910aa043c..f158b9a87488177177a54d9c108b98444c09eff3 100644
(file)
--- a/
src/common/dcgraph.cpp
+++ b/
src/common/dcgraph.cpp
@@
-770,6
+770,13
@@
void wxGCDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height
hh = -hh;
yy = yy - hh;
}
+ if ( m_graphicContext->ShouldOffset() )
+ {
+ // if we are offsetting the entire rectangle is moved 0.5, so the
+ // border line gets off by 1
+ ww -= 1;
+ hh -= 1;
+ }
m_graphicContext->DrawRectangle( xx,yy,ww,hh);
}