summaryrefslogtreecommitdiffstats
path: root/scintilla/src/LineMarker.cxx
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2013-04-08 10:08:19 +0300
committerXhmikosR <xhmikosr@users.sourceforge.net>2013-04-08 02:49:02 +0300
commitbefdc4e35ece26a8738e21af508bb49343f52cd3 (patch)
tree6390d07f2c97a9183b094aca2773c1eab5a11f0d /scintilla/src/LineMarker.cxx
parentb5ea4fc1e949dc8dacb5a6b28f140be064143170 (diff)
downloadnotepad2-mod-befdc4e35ece26a8738e21af508bb49343f52cd3.zip
notepad2-mod-befdc4e35ece26a8738e21af508bb49343f52cd3.tar.gz
notepad2-mod-befdc4e35ece26a8738e21af508bb49343f52cd3.tar.bz2
update scintilla to v3.30 9f249e248e4268d124692485a759a0881b756b9a
Diffstat (limited to 'scintilla/src/LineMarker.cxx')
-rw-r--r--scintilla/src/LineMarker.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/scintilla/src/LineMarker.cxx b/scintilla/src/LineMarker.cxx
index de88f07..33690ac 100644
--- a/scintilla/src/LineMarker.cxx
+++ b/scintilla/src/LineMarker.cxx
@@ -6,6 +6,7 @@
// The License.txt file describes the conditions under which this software may be distributed.
#include <string.h>
+#include <math.h>
#include <vector>
#include <map>
@@ -112,8 +113,8 @@ void LineMarker::Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharac
rc.bottom--;
int minDim = Platform::Minimum(rc.Width(), rc.Height());
minDim--; // Ensure does not go beyond edge
- int centreX = (rc.right + rc.left) / 2;
- int centreY = (rc.bottom + rc.top) / 2;
+ int centreX = floor((rc.right + rc.left) / 2.0);
+ int centreY = floor((rc.bottom + rc.top) / 2.0);
int dimOn2 = minDim / 2;
int dimOn4 = minDim / 4;
int blobSize = dimOn2-1;