mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 15:26:37 +00:00
Fix underlined cells rendering line width.
This commit is contained in:
parent
eddfd36cb0
commit
5b0ee0b8f8
@ -82,9 +82,9 @@ class GuiCanvasWxBackend():
|
|||||||
if (patch[2] & self._CellState.CS_UNDERLINE) or (patch[3] == "_"):
|
if (patch[2] & self._CellState.CS_UNDERLINE) or (patch[3] == "_"):
|
||||||
dc.SetPen(self._pens[patch[0]]);
|
dc.SetPen(self._pens[patch[0]]);
|
||||||
if not isCursor:
|
if not isCursor:
|
||||||
dc.DrawLine(absPoint[0], absPoint[1] + self.cellSize[1] - 1, absPoint[0] + self.cellSize[0] - 1, absPoint[1] + self.cellSize[1] - 1)
|
dc.DrawLine(absPoint[0], absPoint[1] + self.cellSize[1] - 1, absPoint[0] + self.cellSize[0], absPoint[1] + self.cellSize[1] - 1)
|
||||||
else:
|
else:
|
||||||
dc.DrawLines((wx.Point2D(absPoint[0], absPoint[1] + self.cellSize[1] - 1), wx.Point2D(absPoint[0] + self.cellSize[0] - 1, absPoint[1] + self.cellSize[1] - 1),))
|
dc.DrawLines((wx.Point2D(absPoint[0], absPoint[1] + self.cellSize[1] - 1), wx.Point2D(absPoint[0] + self.cellSize[0], absPoint[1] + self.cellSize[1] - 1),))
|
||||||
dc.SetPen(pen)
|
dc.SetPen(pen)
|
||||||
if patch[3] != "_":
|
if patch[3] != "_":
|
||||||
if not isCursor:
|
if not isCursor:
|
||||||
|
Loading…
Reference in New Issue
Block a user