diff options
author | Joshua Leung <aligorith@gmail.com> | 2013-03-08 07:42:16 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2013-03-08 07:42:16 +0400 |
commit | ff336aca022e87be674c5ed5e522f7a961782105 (patch) | |
tree | 0b98c3d0e09d60c827ab93ab7129c3fe47be489c /source/blender | |
parent | b9554c86dc02b9fa83a6b344129b58102b600242 (diff) |
Bugfix [#34560] Wrong angle for text in Horizontal mode of Properties space
Rotation angle for text was still in degrees not radians
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_style.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_style.c b/source/blender/editors/interface/interface_style.c index ef24ea951e3..506e422d38c 100644 --- a/source/blender/editors/interface/interface_style.c +++ b/source/blender/editors/interface/interface_style.c @@ -216,7 +216,7 @@ void uiStyleFontDrawRotated(uiFontStyle *fs, rcti *rect, const char *str) /* rotate counter-clockwise for now (assumes left-to-right language)*/ xofs += height; yofs = BLF_width(fs->uifont_id, str) + 5; - angle = 90.0f; + angle = M_PI / 2.0f; /* translate rect to vertical */ txtrect.xmin = rect->xmin - BLI_rcti_size_y(rect); |