This commit is contained in:
Mattias Andrée 2012-11-05 19:10:52 +01:00
parent 2e42541cdc
commit 0d802b2d01
2 changed files with 4 additions and 2 deletions

View file

@ -327,7 +327,7 @@ class PonysayTool():
infowidth = Backend.len(max(ponyinfo, key = Backend.len))
print(getprint(ponyinfo, infowidth, infoheight, termw, termh, x, y), end='')
else:
print(getprint(pony, ponywidth, ponyheight, panelx, termh, (panelx - ponywidth) // 2, (termh - ponyheight) // 2), end='')
print(getprint(pony, ponywidth, ponyheight, panelx, termh, x + (panelx - ponywidth) // 2, y + (termh - ponyheight) // 2), end='')
printpanel = -1
if printpanel == -1:

View file

@ -342,6 +342,8 @@ class Ponysay():
self.ponyonly = True
else:
self.ponyonly = False
if (args.opts['-i'] is not None) or (args.opts['+i'] is not None):
args.message = ''
self.restriction = args.opts['-r']
## The stuff
@ -1849,7 +1851,7 @@ class Backend():
if self.infolevel == 2:
self.message = Backend.formatInfo(info)
elif self.infolevel == 1:
self.pony = Backend.formatInfo(info).replace('$'), ('$$')
self.pony = Backend.formatInfo(info).replace('$', '$$')
else:
info = info.split('\n')
for line in info: