This commit is contained in:
Julien Danjou 2008-01-06 22:46:59 +01:00
parent 845ea9dcc3
commit d16b11bb30
1 changed files with 2 additions and 4 deletions

View File

@ -70,13 +70,11 @@ statusbar_draw(Statusbar *statusbar)
if(statusbar->position == Right if(statusbar->position == Right
|| statusbar->position == Left) || statusbar->position == Left)
{ {
Drawable d;
if(statusbar->position == Right) if(statusbar->position == Right)
d = draw_rotate(ctx, phys_screen, M_PI_2, statusbar->height, 0); statusbar->drawable = draw_rotate(ctx, phys_screen, M_PI_2, statusbar->height, 0);
else else
d = draw_rotate(ctx, phys_screen, - M_PI_2, 0, statusbar->width); statusbar->drawable = draw_rotate(ctx, phys_screen, - M_PI_2, 0, statusbar->width);
statusbar->drawable = d;
draw_free_context(ctx); draw_free_context(ctx);
} }
else else