summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/python
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-12-28 16:39:30 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-12-28 22:53:40 +0000
commit64893eb5017274a955a4166c50b56601fb7673b8 (patch)
tree6c6cd2f37fa992cfa2069a827d5b120c229fbab0 /src/gallium/state_trackers/python
parent67171ed85f3f9486238a994e8a427ddc1ac31069 (diff)
python/retrace: Dump only the specified image rectangles.
Diffstat (limited to 'src/gallium/state_trackers/python')
-rwxr-xr-xsrc/gallium/state_trackers/python/retrace/interpreter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/python/retrace/interpreter.py b/src/gallium/state_trackers/python/retrace/interpreter.py
index 2487af6bd1..a68709f5cf 100755
--- a/src/gallium/state_trackers/python/retrace/interpreter.py
+++ b/src/gallium/state_trackers/python/retrace/interpreter.py
@@ -52,10 +52,10 @@ def make_image(surface, x=None, y=None, w=None, h=None):
w = surface.width - x
if h is None:
h = surface.height - y
- data = surface.get_tile_rgba8(0, 0, surface.width, surface.height)
+ data = surface.get_tile_rgba8(x, y, surface.width, surface.height)
import Image
- outimage = Image.fromstring('RGBA', (surface.width, surface.height), data, "raw", 'RGBA', 0, 1)
+ outimage = Image.fromstring('RGBA', (w, h), data, "raw", 'RGBA', 0, 1)
return outimage
def save_image(filename, surface, x=None, y=None, w=None, h=None):