Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-14 01:50:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-14 01:53:07 +0300
commitdaaabd076d125d7b61b00ff49fbca04bbf9c3129 (patch)
tree918fcb9fcb1159277d74dc261a8f0fd7858c0c98 /source/blender/makesdna/DNA_screen_types.h
parent7fb7d20c19e2a022cfc776b5fd98f4850ba83ebc (diff)
Comments: correct ARegion.sizex/y comment
Also remove unused 'fsize'
Diffstat (limited to 'source/blender/makesdna/DNA_screen_types.h')
-rw-r--r--source/blender/makesdna/DNA_screen_types.h6
1 files changed, 2 insertions, 4 deletions
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;