&& (ens) && (ens->type == EVAS_NATIVE_SURFACE_TBM))
{
double tmp;
+
+ if (tex->im &&
+ (tex->im->native.flip == EVAS_IMAGE_FLIP_HORIZONTAL))
+ {
+ sx = tex->im->w - sw - sx;
+ }
+
+ if (tex->im->native.flip == EVAS_IMAGE_FLIP_VERTICAL)
+ {
+ sy = tex->im->h - sh - sy;
+ }
+
+ if (tex->im->native.flip == EVAS_IMAGE_FLIP_TRANSVERSE)
+ {
+ double tmp;
+
+ SWAP(&sw, &sh, tmp);
+ SWAP(&sx, &sy, tmp);
+
+ sx = tex->im->w - sw - sx;
+ sy = tex->im->h - sh - sy;
+ }
+
if (tex->im->native.rot == EVAS_IMAGE_ORIENT_90)
{
tmp = sx; sx = (tex->im->h - sy - sh) * tex->im->w / (double)tex->im->h;
sh = tmp * tex->im->h / (double)tex->im->w;
}
- if (tex->im &&
- (tex->im->native.flip == EVAS_IMAGE_FLIP_HORIZONTAL))
- {
- sx = tex->im->w - sw - sx;
- }
-
- if (tex->im->native.flip == EVAS_IMAGE_FLIP_VERTICAL)
- {
- sy = tex->im->h - sh - sy;
- }
-
- if (tex->im->native.flip == EVAS_IMAGE_FLIP_TRANSVERSE)
- {
- double tmp;
-
- SWAP(&sw, &sh, tmp);
- SWAP(&sx, &sy, tmp);
-
- sx = tex->im->w - sw - sx;
- sy = tex->im->h - sh - sy;
- }
-
if (tex->im->native.flip == EVAS_IMAGE_FLIP_TRANSPOSE)
{
double tmp;