mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Ticket #3641: code cleanup before 4.8.18 release.
(dlg_adjust_position): don't change origin of non-centered dialog. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
834c09a283
commit
fb4f4674c7
@ -701,13 +701,9 @@ dlg_adjust_position (const WDialog * h, int *y, int *x, int *lines, int *cols)
|
||||
{
|
||||
if ((w->pos_flags & WPOS_CENTER_HORZ) != 0)
|
||||
*x = (COLS - *cols) / 2;
|
||||
else
|
||||
*x = w->x;
|
||||
|
||||
if ((w->pos_flags & WPOS_CENTER_VERT) != 0)
|
||||
*y = (LINES - *lines) / 2;
|
||||
else
|
||||
*y = w->y;
|
||||
|
||||
if ((w->pos_flags & WPOS_TRYUP) != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user