Fix FS#12674 - %ax() doesnt mirror viewport correctly

Change-Id: I10c933542037eeedc9c4be74b3d43a1430ec05b2
This commit is contained in:
Jonathan Gordon 2012-05-30 21:16:35 +10:00
parent 3cad5573b6
commit 7a009276bc

View file

@ -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)
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;
}