Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-02-14 15:31:00 +0300
committerTon Roosendaal <ton@blender.org>2007-02-14 15:31:00 +0300
commite215937509fb5a579a3b8611682ce94261b174be (patch)
tree9e321b621d6108d048faaea9a1be4589ad232b2a /source/blender/src/sculptmode.c
parent0bb0c54f4b9cbea0a0eb58a04be0ef1f88a0a47b (diff)
Sculptmode fix:
Texture brushes were writing outside of array boundary. Might be the bad one as reported for windows...
Diffstat (limited to 'source/blender/src/sculptmode.c')
-rw-r--r--source/blender/src/sculptmode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/sculptmode.c b/source/blender/src/sculptmode.c
index 80b435cd7de..fedf1d89392 100644
--- a/source/blender/src/sculptmode.c
+++ b/source/blender/src/sculptmode.c
@@ -998,8 +998,8 @@ unsigned *get_ri_pixel(const RenderInfo *ri, int px, int py)
{
if(px < 0) px= 0;
if(py < 0) py= 0;
- if(px > ri->pr_rectx) px= ri->pr_rectx;
- if(py > ri->pr_recty) py= ri->pr_recty;
+ if(px > ri->pr_rectx-1) px= ri->pr_rectx-1;
+ if(py > ri->pr_recty-1) py= ri->pr_recty-1;
return ri->rect + py * ri->pr_rectx + px;
}