summaryrefslogtreecommitdiff
path: root/scene/resources/texture.cpp
diff options
context:
space:
mode:
authorsanikoyes <sanikoyes@163.com>2014-03-19 15:55:12 +0800
committersanikoyes <sanikoyes@163.com>2014-03-19 15:55:12 +0800
commitbc4e37b1322c8fa7c13b40e69d78483bbd6277dc (patch)
tree71a82a4f7f72df1d100a5cebbbd208818db2cba6 /scene/resources/texture.cpp
parent3037b3f6dcaea2de9de058d715a4e3dafc974039 (diff)
fix a mistake
Diffstat (limited to 'scene/resources/texture.cpp')
-rw-r--r--scene/resources/texture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp
index 8dbb73e23d..a29fc5d921 100644
--- a/scene/resources/texture.cpp
+++ b/scene/resources/texture.cpp
@@ -583,7 +583,7 @@ void AtlasTexture::draw_rect_region(RID p_canvas_item,const Rect2& p_rect, const
if(scale.x >= 0 && scale.y >= 0)
{
- Rect2 dr(src_c.size*scale,p_rect.pos+ofs*scale);
+ Rect2 dr(p_rect.pos+ofs*scale,src_c.size*scale);
VS::get_singleton()->canvas_item_add_texture_rect_region(p_canvas_item,dr,atlas->get_rid(),src_c,p_modulate);
}
else