EvasGL: fix clip bug while computing coordinates for Evas GL

direct rendering optimization.


SVN revision: 78666
This commit is contained in:
Sung Park 2012-10-30 14:37:54 +00:00
parent bb68f2db60
commit 9ff072ca67
3 changed files with 11 additions and 4 deletions

View File

@ -1135,3 +1135,9 @@
2012-10-26 ChunEon Park (Hermet)
* Fixed event multi move memory leak.
2012-10-30 Sung W. Park (sung_)
* Fix clip bug while computing coordinates for Evas GL
direct rendering optimization.

View File

@ -224,6 +224,7 @@ Fixes:
* TGA loader detects false positives less and handles alpha TGAs better
* repeat event flag not inherited from parent smart like pass events
* texture size for nv12 format
* coordinate compute bug for Evas GL direct rendering.
Improvements:

View File

@ -226,15 +226,15 @@ compute_gl_coordinates(Evas_Object *obj, int rot, int clip,
{
// Clip against original image object
if (objc[0] < imgc[0]) objc[0] = imgc[0];
if (objc[0] > imgc[2]) objc[0] = 0;
if (objc[0] > imgc[2]) objc[0] = imgc[2];
if (objc[1] < imgc[1]) objc[1] = imgc[1];
if (objc[1] > imgc[3]) objc[1] = 0;
if (objc[1] > imgc[3]) objc[1] = imgc[3];
if (objc[2] < imgc[0]) objc[0] = 0;
if (objc[2] < imgc[0]) objc[2] = imgc[0];
if (objc[2] > imgc[2]) objc[2] = imgc[2];
if (objc[3] < imgc[1]) objc[1] = 0;
if (objc[3] < imgc[1]) objc[3] = imgc[1];
if (objc[3] > imgc[3]) objc[3] = imgc[3];
}