wGetRectForHead moved to where used
commit6fe23037ef1cd0d545baf20a3f29307425ca5d7d
authorRodolfo García Peñas (kix) <kix@kix.es>
Wed, 3 Apr 2013 18:01:47 +0000 (3 20:01 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 3 Apr 2013 18:33:34 +0000 (3 19:33 +0100)
treed077f3f1621f199ee6acebf9500ea138025da00b
parentb9e8bbbdc75f285551c4beb45b6a65741ba8ad4d
wGetRectForHead moved to where used

The definition and call for wGetRectForHead is moved inside the
if block where is used. This code adds a WScreen pointer to make
the line shorter.

If menu->frame is NULL, then was NULL before this patch, so this
code doesn't include an error about this.

This patch will used with next patch to move the code inside the
block to an specific function.
src/menu.c