Center gadcon popups over their respective gadgets, not aligned to the left.

SVN revision: 33390
This commit is contained in:
Christopher Michael 2008-01-08 06:12:22 +00:00
parent 7bebd67e20
commit 0f8558761f
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ e_gadcon_popup_show(E_Gadcon_Popup *pop)
case E_GADCON_ORIENT_CORNER_TL:
case E_GADCON_ORIENT_CORNER_TR:
py = gy + gh;
px = gx;
px = (gx + (gw / 2)) - (pop->w / 2);
if (px + pop->w >= zw)
px = gx + gw - pop->w;
break;
@ -123,7 +123,7 @@ e_gadcon_popup_show(E_Gadcon_Popup *pop)
case E_GADCON_ORIENT_CORNER_BL:
case E_GADCON_ORIENT_CORNER_BR:
py = gy - pop->h;
px = gx;
px = (gx + (gw / 2)) - (pop->w / 2);
if (px + pop->w >= zw)
px = gx + gw - pop->w;
break;