Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/area.c
| Show First 20 Lines • Show All 1,259 Lines • ▼ Show 20 Lines | else if (ar->regiontype == RGN_TYPE_TOOL_HEADER) { | ||||
| prefsizey = ED_area_headersize(); | prefsizey = ED_area_headersize(); | ||||
| } | } | ||||
| else if (ar->regiontype == RGN_TYPE_FOOTER) { | else if (ar->regiontype == RGN_TYPE_FOOTER) { | ||||
| prefsizey = ED_area_footersize(); | prefsizey = ED_area_footersize(); | ||||
| } | } | ||||
| else if (ED_area_is_global(sa)) { | else if (ED_area_is_global(sa)) { | ||||
| prefsizey = ED_region_global_size_y(); | prefsizey = ED_region_global_size_y(); | ||||
| } | } | ||||
| else if (ar->regiontype == RGN_TYPE_UI && sa->spacetype == SPACE_FILE) { | |||||
| prefsizey = UI_UNIT_Y * 2 + (UI_UNIT_Y / 2); | |||||
| } | |||||
| else { | else { | ||||
| prefsizey = UI_DPI_FAC * (ar->sizey > 1 ? ar->sizey + 0.5f : ar->type->prefsizey); | prefsizey = UI_DPI_FAC * (ar->sizey > 1 ? ar->sizey + 0.5f : ar->type->prefsizey); | ||||
| } | } | ||||
| if (ar->flag & RGN_FLAG_HIDDEN) { | if (ar->flag & RGN_FLAG_HIDDEN) { | ||||
| /* hidden is user flag */ | /* hidden is user flag */ | ||||
| } | } | ||||
| else if (alignment == RGN_ALIGN_FLOAT) { | else if (alignment == RGN_ALIGN_FLOAT) { | ||||
| ▲ Show 20 Lines • Show All 2,177 Lines • Show Last 20 Lines | |||||