Typo in screen.c:get_display_area causing display area to be miscalculated

This commit is contained in:
Nikos Ntarmos 2007-12-31 18:45:31 +02:00 committed by Julien Danjou
parent 52920a849b
commit 9adfc6eb35
1 changed files with 2 additions and 2 deletions

View File

@ -108,8 +108,8 @@ get_display_area(int screen, Statusbar *statusbar, Padding *padding)
for(sb = statusbar; sb; sb = sb->next)
{
area.y -= sb->position == BarTop ? statusbar->height : 0;
area.height -= (statusbar->position == BarTop || statusbar->position == BarBot) ? statusbar->height : 0;
area.y += sb->position == BarTop ? sb->height : 0;
area.height -= (sb->position == BarTop || sb->position == BarBot) ? sb->height : 0;
}
/* make padding corrections */