Fix FS#12674 - %ax() doesnt mirror viewport correctly
Change-Id: I10c933542037eeedc9c4be74b3d43a1430ec05b2
This commit is contained in:
parent
3cad5573b6
commit
7a009276bc
1 changed files with 4 additions and 0 deletions
|
@ -1946,6 +1946,10 @@ static int convert_viewport(struct wps_data *data, struct skin_element* element)
|
||||||
skin_vp->vp.height + skin_vp->vp.y > display->lcdheight)
|
skin_vp->vp.height + skin_vp->vp.y > display->lcdheight)
|
||||||
return CALLBACK_ERROR;
|
return CALLBACK_ERROR;
|
||||||
|
|
||||||
|
/* Fix x position for RTL languages */
|
||||||
|
if (follow_lang_direction && lang_is_rtl())
|
||||||
|
skin_vp->vp.x = display->lcdwidth - skin_vp->vp.x - skin_vp->vp.width;
|
||||||
|
|
||||||
return CALLBACK_OK;
|
return CALLBACK_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue