forked from enlightenment/efl
EvasGL: fix clip bug while computing coordinates for Evas GL
direct rendering optimization. SVN revision: 78666
This commit is contained in:
parent
bb68f2db60
commit
9ff072ca67
|
@ -1135,3 +1135,9 @@
|
||||||
2012-10-26 ChunEon Park (Hermet)
|
2012-10-26 ChunEon Park (Hermet)
|
||||||
|
|
||||||
* Fixed event multi move memory leak.
|
* 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.
|
||||||
|
|
||||||
|
|
|
@ -224,6 +224,7 @@ Fixes:
|
||||||
* TGA loader detects false positives less and handles alpha TGAs better
|
* TGA loader detects false positives less and handles alpha TGAs better
|
||||||
* repeat event flag not inherited from parent smart like pass events
|
* repeat event flag not inherited from parent smart like pass events
|
||||||
* texture size for nv12 format
|
* texture size for nv12 format
|
||||||
|
* coordinate compute bug for Evas GL direct rendering.
|
||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
|
|
@ -226,15 +226,15 @@ compute_gl_coordinates(Evas_Object *obj, int rot, int clip,
|
||||||
{
|
{
|
||||||
// Clip against original image object
|
// Clip against original image object
|
||||||
if (objc[0] < imgc[0]) objc[0] = imgc[0];
|
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[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[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];
|
if (objc[3] > imgc[3]) objc[3] = imgc[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue