mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 07:16:38 +00:00
MiRCARTCanvasImportStore.py:_parseCharAsColourSpec(): correctly process mIRC colour control code sequences specifying one single colour.
MiRCARTToPngFile.py:export(): fix indentation.
This commit is contained in:
parent
d79ea00164
commit
1511002798
@ -57,7 +57,7 @@ class MiRCARTCanvasImportStore():
|
||||
return (int(colourSpec[0] or curColours[0]), \
|
||||
int(colourSpec[1]))
|
||||
elif len(colourSpec) == 1:
|
||||
return (int(colourSpec[0]), curColours[0])
|
||||
return (int(colourSpec[0]), curColours[1])
|
||||
else:
|
||||
return (15, 1)
|
||||
# }}}
|
||||
|
@ -97,7 +97,7 @@ class MiRCARTToPngFile:
|
||||
else:
|
||||
if inCurCell[2] != " ":
|
||||
outColours[0] = self._ColourMapNormal[inCurCell[0][0]]
|
||||
outColours[1] = self._ColourMapNormal[inCurCell[0][1]]
|
||||
outColours[1] = self._ColourMapNormal[inCurCell[0][1]]
|
||||
outImgDraw.rectangle((*outCurPos, \
|
||||
outCurPos[0] + self.outImgFontSize[0], \
|
||||
outCurPos[1] + self.outImgFontSize[1]), \
|
||||
|
Loading…
Reference in New Issue
Block a user