From 7d2c3fa420edef813a3f0123960afcfd87259117 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 22 May 2003 21:40:13 +0000 Subject: [PATCH] Fix WIN_L2R --- src/uifc/uifc32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c index db79086da2..9e485beb87 100644 --- a/src/uifc/uifc32.c +++ b/src/uifc/uifc32.c @@ -403,9 +403,9 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar } } if(mode&WIN_L2R) - left=(s_right-s_left)/2-(width/2)+(api->scrn_width-s_right); + left=(s_right-s_left+1)/2-(width/2)+(s_left); else if(mode&WIN_RHT) - left=s_right-width; + left=api->scrn_width-(width+4+left); if(mode&WIN_T2B) top=(api->scrn_len/2)-(height/2)-2; else if(mode&WIN_BOT) -- GitLab