Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
599c291
)
ecere/gfx/drivers/LFBDisplayDriver: Fixed crash with outlines
author
Jerome St-Louis
<jerome@ecere.com>
Sat, 28 Mar 2015 09:14:29 +0000
(
05:14
-0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Sat, 28 Mar 2015 09:14:29 +0000
(
05:14
-0400)
ecere/src/gfx/drivers/LFBDisplayDriver.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gfx/drivers/LFBDisplayDriver.ec
b/ecere/src/gfx/drivers/LFBDisplayDriver.ec
index
4e66927
..
ff2add5
100644
(file)
--- a/
ecere/src/gfx/drivers/LFBDisplayDriver.ec
+++ b/
ecere/src/gfx/drivers/LFBDisplayDriver.ec
@@
-843,8
+843,8
@@
class GlyphPack : BTNode
int y1 = (timesBigger*pCellHeight - pCellHeight) / 2, y2 = y1 + pCellHeight-1;
ox = -Max(0, x1 - minX1);
oy = -Max(0, y1 - minY1);
- cellWidth = pCellWidth - ox + Max(0,
maxX2 - x2
);
- cellHeight = pCellHeight - oy + Max(0,
maxY2 - y2
);
+ cellWidth = pCellWidth - ox + Max(0,
(maxX2 > x2) ? (maxX2 - x2) : 0
);
+ cellHeight = pCellHeight - oy + Max(0,
(maxY2 > y2) ? (maxY2 - y2) : 0
);
}
width = cellWidth * 16;