diff options
author | Ton Roosendaal <ton@blender.org> | 2012-12-18 17:59:47 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2012-12-18 17:59:47 +0400 |
commit | 9c90cf3ca4a5b1181865c5d5e3eb27a87ee2781c (patch) | |
tree | 8137b2bd7332753e2f8d344bfcc170a85ea1596c /source/blender/editors/include | |
parent | db14a81e04986ce59b6bdfa10c23e798e79f6c02 (diff) |
Nicer function for drawing text in 3d window:
ED_region_visible_rect(ar, rect)
Returns the visible rect inside a region, subtracting the overlapping UI regions.
Added with minimal overhead, only called once per region draw.
Also fixes the 'Auto Key' warning print in 3d window (was behind properties)
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_screen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h index edee1213502..72208a8e93d 100644 --- a/source/blender/editors/include/ED_screen.h +++ b/source/blender/editors/include/ED_screen.h @@ -67,7 +67,7 @@ void ED_region_toggle_hidden(struct bContext *C, struct ARegion *ar); void ED_region_info_draw(struct ARegion *ar, const char *text, int block, float alpha); void ED_region_grid_draw(struct ARegion *ar, float zoomx, float zoomy); float ED_region_blend_factor(struct ARegion *ar); -int ED_region_overlapping_offset(struct ARegion *ar); +void ED_region_visible_rect(struct ARegion *ar, struct rcti *rect); /* spaces */ |