[Bf-blender-cvs] [5e9b43c] master: Fix 1px gap in regions drawn with region overlap

Julian Eisel noreply at git.blender.org
Tue Jun 30 21:04:56 CEST 2015


Commit: 5e9b43cc616922d3dca8567e64a568e8a1fc9012
Author: Julian Eisel
Date:   Tue Jun 30 21:02:19 2015 +0200
Branches: master
https://developer.blender.org/rB5e9b43cc616922d3dca8567e64a568e8a1fc9012

Fix 1px gap in regions drawn with region overlap

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

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

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

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 42adcc2..1b86808 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -1928,7 +1928,7 @@ void ED_region_panels(const bContext *C, ARegion *ar, int vertical, const char *
 		UI_view2d_view_restore(C);
 		glEnable(GL_BLEND);
 		UI_ThemeColor4((ar->type->regionid == RGN_TYPE_PREVIEW) ? TH_PREVIEW_BACK : TH_BACK);
-		glRecti(0, 0, BLI_rcti_size_x(&ar->winrct), BLI_rcti_size_y(&ar->winrct));
+		glRecti(0, 0, BLI_rcti_size_x(&ar->winrct), BLI_rcti_size_y(&ar->winrct) + 1);
 		glDisable(GL_BLEND);
 	}
 	else {




More information about the Bf-blender-cvs mailing list