summaryrefslogtreecommitdiff
path: root/legacy/evas/src/modules/engines/gl_common/evas_gl_api.c
diff options
context:
space:
mode:
authorSung Park <sungwoo@gmail.com>2012-10-30 14:37:54 +0000
committerSung Park <sungwoo@gmail.com>2012-10-30 14:37:54 +0000
commit9ff072ca6707653ff437b6c8adecfb10c4314fc8 (patch)
treea710d6441834fe448c197ccf4bc404a25a33d769 /legacy/evas/src/modules/engines/gl_common/evas_gl_api.c
parentbb68f2db602bf25c8857f4737a00e7439d6d266c (diff)
EvasGL: fix clip bug while computing coordinates for Evas GL
direct rendering optimization. SVN revision: 78666
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/modules/engines/gl_common/evas_gl_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/legacy/evas/src/modules/engines/gl_common/evas_gl_api.c b/legacy/evas/src/modules/engines/gl_common/evas_gl_api.c
index 99e0508b3f..a40d121459 100644
--- a/legacy/evas/src/modules/engines/gl_common/evas_gl_api.c
+++ b/legacy/evas/src/modules/engines/gl_common/evas_gl_api.c
@@ -226,15 +226,15 @@ compute_gl_coordinates(Evas_Object *obj, int rot, int clip,
226 { 226 {
227 // Clip against original image object 227 // Clip against original image object
228 if (objc[0] < imgc[0]) objc[0] = imgc[0]; 228 if (objc[0] < imgc[0]) objc[0] = imgc[0];
229 if (objc[0] > imgc[2]) objc[0] = 0; 229 if (objc[0] > imgc[2]) objc[0] = imgc[2];
230 230
231 if (objc[1] < imgc[1]) objc[1] = imgc[1]; 231 if (objc[1] < imgc[1]) objc[1] = imgc[1];
232 if (objc[1] > imgc[3]) objc[1] = 0; 232 if (objc[1] > imgc[3]) objc[1] = imgc[3];
233 233
234 if (objc[2] < imgc[0]) objc[0] = 0; 234 if (objc[2] < imgc[0]) objc[2] = imgc[0];
235 if (objc[2] > imgc[2]) objc[2] = imgc[2]; 235 if (objc[2] > imgc[2]) objc[2] = imgc[2];
236 236
237 if (objc[3] < imgc[1]) objc[1] = 0; 237 if (objc[3] < imgc[1]) objc[3] = imgc[1];
238 if (objc[3] > imgc[3]) objc[3] = imgc[3]; 238 if (objc[3] > imgc[3]) objc[3] = imgc[3];
239 } 239 }
240 240