[Bf-blender-cvs] [a4bb1a58811] blender2.8: Fix render engine info region when overlap and header on bottom

Dalai Felinto noreply at git.blender.org
Thu May 31 23:59:09 CEST 2018


Commit: a4bb1a58811c205adf71672e391091bbe7416bef
Author: Dalai Felinto
Date:   Thu May 31 23:48:50 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBa4bb1a58811c205adf71672e391091bbe7416bef

Fix render engine info region when overlap and header on bottom

Note there is some talk about changing the position of this (which would be strange in the image editor by the way,
since there we use the bottom for the result of the current pixel when dragging the mouse).

However first I wanted to fix this regardless.

===================================================================

M	source/blender/editors/screen/area.c

===================================================================

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 7e3764e0f04..874e5a32da3 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -2258,7 +2258,7 @@ void ED_region_info_draw_multiline(ARegion *ar, const char *text_array[], float
 		}
 	}
 
-	rect.ymin = BLI_rcti_size_y(&rect) - header_height * num_lines;
+	rect.ymin = rect.ymax - header_height * num_lines;
 
 	/* setup scissor */
 	glGetIntegerv(GL_SCISSOR_BOX, scissor);



More information about the Bf-blender-cvs mailing list