All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Testov <vladimir.testov@rosalab.ru>
To: grub-devel@gnu.org
Cc: Andrey Borzenkov <arvidjaar@gmail.com>
Subject: Re: [PATCH] [4/?] grub-core/gfxmenu/gui_list.c - baseline centering bug
Date: Mon, 22 Jul 2013 11:47:38 +0400	[thread overview]
Message-ID: <3338260.RxHFEyJKGm@icedphoenix> (raw)
In-Reply-To: <20130720174758.285fa56e@opensuse.site>

On Saturday, July 20, 2013 05:47:57 PM Andrey Borzenkov wrote:

> > -  int string_left_offset = self->icon_width + icon_text_space;
> > -  int string_top_offset = (item_height - (ascent + descent)) / 2 +
> > ascent;
> > +  int item_left_offset = self->icon_width + icon_text_space;
> > +  int item_top_offset = (item_height - (ascent + descent)) / 2 + ascent;

> Is there any reason for renaming? Such changes usually obfuscate main
> patch content and better done as separate patch with clear explanation.

I have renamed these values to differ left and top offsets for non-selected item 
and for selected item.

So the meanings of the values are cleared and easy-to-get.

I can do these changes in a separate patch if it's needed.

Just the patch and the renaming are about the same concept so it should be 
applied together.

-- 
With best regards,
_______________________________
Vladimir Testov, ROSA Laboratory.
www.rosalab.ru


      reply	other threads:[~2013-07-22  7:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-15 13:35 [PATCH] [4/?] grub-core/gfxmenu/gui_list.c - baseline centering bug Vladimir Testov
2013-07-16  8:02 ` Vladimir Testov
2013-07-20 13:47 ` Andrey Borzenkov
2013-07-22  7:47   ` Vladimir Testov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3338260.RxHFEyJKGm@icedphoenix \
    --to=vladimir.testov@rosalab.ru \
    --cc=arvidjaar@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.