use M_PI_2
This commit is contained in:
parent
84017b9666
commit
db65104aa2
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue