1
0
mirror of https://github.com/gryf/wmdocklib.git synced 2025-12-19 04:20:17 +01:00

1575762: initialization of pixmask

makes it possible to have application windows wider than 64 pixels.
the limit of 128 pixels cannot be crossed.
This commit is contained in:
mfrasca
2006-10-12 20:28:52 +00:00
parent a6c99b9682
commit 6af6969015

View File

@@ -219,11 +219,11 @@ def initPixmap(xpm_background=None,
'%x\tc %s s %s' % (k, v[0], v[-1]) '%x\tc %s s %s' % (k, v[0], v[-1])
for k,v in palette.items() for k,v in palette.items()
] + [ ] + [
'0'*width + item for item in xpm_background[:margin] '0'*width + item[:128-width] for item in xpm_background[:margin]
] + [ ] + [
'0'*margin+bg*(width-margin-margin-2)+'0'*(margin+2) + item for item in xpm_background[margin:-margin-1] '0'*margin+bg*(width-margin-margin-2)+'0'*(margin+2) + item[:128-width] for item in xpm_background[margin:-margin-1]
] + [ ] + [
'0'*width + item for item in xpm_background[-margin-1:] '0'*width + item[:128-width] for item in xpm_background[-margin-1:]
] + [ ] + [
line.replace('%', fg).replace(' ', bg) line.replace('%', fg).replace(' ', bg)
for line in char_map for line in char_map