[Bf-blender-cvs] [daaabd076d1] master: Comments: correct ARegion.sizex/y comment

Campbell Barton noreply at git.blender.org
Wed Mar 13 23:53:30 CET 2019


Commit: daaabd076d125d7b61b00ff49fbca04bbf9c3129
Author: Campbell Barton
Date:   Thu Mar 14 09:50:47 2019 +1100
Branches: master
https://developer.blender.org/rBdaaabd076d125d7b61b00ff49fbca04bbf9c3129

Comments: correct ARegion.sizex/y comment

Also remove unused 'fsize'

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

M	source/blender/makesdna/DNA_screen_types.h

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

diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h
index 3dc44ac9416..19e1f824ced 100644
--- a/source/blender/makesdna/DNA_screen_types.h
+++ b/source/blender/makesdna/DNA_screen_types.h
@@ -403,9 +403,8 @@ typedef struct ARegion {
 	/** Hide, .... */
 	short flag;
 
-	/** Current split size in float (unused). */
-	float fsize;
-	/** Current split size in pixels (if zero it uses regiontype). */
+	/** Current split size in unscaled pixels (if zero it uses regiontype).
+	 * To convert to pixels use: `UI_DPI_FAC * ar->sizex + 0.5f`. */
 	short sizex, sizey;
 
 	/** Private, cached notifier events. */
@@ -416,7 +415,6 @@ typedef struct ARegion {
 	short overlap;
 	/** Temporary copy of flag settings for clean fullscreen. */
 	short flagfullscreen;
-	char _pad[4];
 
 	/** Callbacks for this region type. */
 	struct ARegionType *type;



More information about the Bf-blender-cvs mailing list