use M_PI_2

This commit is contained in:
Julien Danjou 2007-11-11 21:20:02 +01:00
parent 84017b9666
commit db65104aa2
1 changed files with 2 additions and 2 deletions

View File

@ -164,12 +164,12 @@ drawstatusbar(awesome_config *awesomeconf)
if(awesomeconf->statusbar.position == BarRight) if(awesomeconf->statusbar.position == BarRight)
draw_rotate(awesomeconf->display, awesomeconf->phys_screen, draw_rotate(awesomeconf->display, awesomeconf->phys_screen,
awesomeconf->statusbar.drawable, awesomeconf->statusbar.width, awesomeconf->statusbar.drawable, awesomeconf->statusbar.width,
awesomeconf->statusbar.height, M_PI * 0.5, awesomeconf->statusbar.height, M_PI_2,
awesomeconf->statusbar.height, 0); awesomeconf->statusbar.height, 0);
else else
draw_rotate(awesomeconf->display, awesomeconf->phys_screen, draw_rotate(awesomeconf->display, awesomeconf->phys_screen,
awesomeconf->statusbar.drawable, awesomeconf->statusbar.width, awesomeconf->statusbar.drawable, awesomeconf->statusbar.width,
awesomeconf->statusbar.height, M_PI * 0.5, awesomeconf->statusbar.height, - M_PI_2,
0, -awesomeconf->statusbar.height); 0, -awesomeconf->statusbar.height);
XCopyArea(awesomeconf->display, awesomeconf->statusbar.drawable, XCopyArea(awesomeconf->display, awesomeconf->statusbar.drawable,
awesomeconf->statusbar.window, awesomeconf->statusbar.window,