Skip to content
Snippets Groups Projects
Commit 2b76f2cd authored by deuce's avatar deuce
Browse files

Fix WIN_L2R centering.

parent 61e2e492
No related branches found
No related tags found
No related merge requests found
...@@ -403,7 +403,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar ...@@ -403,7 +403,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
} }
} }
if(mode&WIN_L2R) if(mode&WIN_L2R)
left=(api->scrn_width-width+1)/2-s_left; left=(s_right-s_left-width+1)/2;
else if(mode&WIN_RHT) else if(mode&WIN_RHT)
left=s_right-(width+left+4); left=s_right-(width+left+4);
if(mode&WIN_T2B) if(mode&WIN_T2B)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment