OSDN Git Service
(root)
/
mypaint-anime
/
master.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2cdd78
)
save/load position of background tile correctly
author
Martin Renold
<martinxyz@gmx.ch>
Sat, 5 Sep 2009 17:24:16 +0000
(19:24 +0200)
committer
Martin Renold
<martinxyz@gmx.ch>
Sat, 5 Sep 2009 17:24:16 +0000
(19:24 +0200)
lib/document.py
patch
|
blob
|
history
diff --git
a/lib/document.py
b/lib/document.py
index
44d2d6d
..
159acb4
100644
(file)
--- a/
lib/document.py
+++ b/
lib/document.py
@@
-344,7
+344,7
@@
class Document():
l = add_layer(0, 0, 1.0, s.pixbuf, 'data/background.png')
bg = self.background
x, y, w, h = bg.get_pattern_bbox()
- pixbuf = pixbufsurface.render_as_pixbuf(bg, x
, y
, w, h, alpha=False)
+ pixbuf = pixbufsurface.render_as_pixbuf(bg, x
+x0, y+y0
, w, h, alpha=False)
store_pixbuf(pixbuf, 'data/background_tile.png')
l.attrib['background_tile'] = 'data/background_tile.png'