Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_panel.c
| Show First 20 Lines • Show All 1,351 Lines • ▼ Show 20 Lines | #endif | ||||
| UI_GetThemeColor4fv(TH_TAB_ACTIVE, theme_col_tab_active); | UI_GetThemeColor4fv(TH_TAB_ACTIVE, theme_col_tab_active); | ||||
| UI_GetThemeColor4fv(TH_TAB_INACTIVE, theme_col_tab_inactive); | UI_GetThemeColor4fv(TH_TAB_INACTIVE, theme_col_tab_inactive); | ||||
| UI_GetThemeColor4fv(TH_TAB_OUTLINE, theme_col_tab_outline); | UI_GetThemeColor4fv(TH_TAB_OUTLINE, theme_col_tab_outline); | ||||
| is_alpha = (region->overlap && (theme_col_back[3] != 255)); | is_alpha = (region->overlap && (theme_col_back[3] != 255)); | ||||
| BLF_enable(fontid, BLF_ROTATION); | BLF_enable(fontid, BLF_ROTATION); | ||||
| BLF_rotation(fontid, M_PI_2); | BLF_rotation(fontid, M_PI_2); | ||||
| // UI_fontstyle_set(&style->widget); | ui_fontscale(&fstyle_points, aspect); | ||||
| ui_fontscale(&fstyle_points, aspect / (U.pixelsize * 1.1f)); | BLF_size(fontid, fstyle_points * U.pixelsize, U.dpi); | ||||
brecht: Other code calling `BLF_size` does this:
```
BLF_size(fontid, fstyle_points * U.pixelsize, U. | |||||
| BLF_size(fontid, fstyle_points, U.dpi); | |||||
| /* Check the region type supports categories to avoid an assert | /* Check the region type supports categories to avoid an assert | ||||
| * for showing 3D view panels in the properties space. */ | * for showing 3D view panels in the properties space. */ | ||||
| if ((1 << region->regiontype) & RGN_TYPE_HAS_CATEGORY_MASK) { | if ((1 << region->regiontype) & RGN_TYPE_HAS_CATEGORY_MASK) { | ||||
| BLI_assert(UI_panel_category_is_visible(region)); | BLI_assert(UI_panel_category_is_visible(region)); | ||||
| } | } | ||||
| /* Calculate tab rectangle and check if we need to scale down. */ | /* Calculate tab rectangle and check if we need to scale down. */ | ||||
| ▲ Show 20 Lines • Show All 1,233 Lines • Show Last 20 Lines | |||||
Other code calling BLF_size does this:
Which I imagine is practically the same thing, but better to be consistent.