mirror of
https://github.com/lalbornoz/roar.git
synced 2024-12-22 20:36: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] == "_"):
|
||||
dc.SetPen(self._pens[patch[0]]);
|
||||
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:
|
||||
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)
|
||||
if patch[3] != "_":
|
||||
if not isCursor:
|
||||
|
Loading…
Reference in New Issue
Block a user