Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_userdef.c
| Context not available. | |||||
| static void rna_userdef_dpi_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr)) | static void rna_userdef_dpi_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr)) | ||||
| { | { | ||||
| /* font's are stored at each DPI level, without this we can easy load 100's of fonts */ | /* font's are stored at each DPI level, without this we can easy load 100's of fonts */ | ||||
| BLF_cache_clear(); | BLF_cache_clear(true); | ||||
| BKE_blender_userdef_refresh(); | BKE_blender_userdef_refresh(); | ||||
| WM_main_add_notifier(NC_WINDOW, NULL); /* full redraw */ | WM_main_add_notifier(NC_WINDOW, NULL); /* full redraw */ | ||||
| Context not available. | |||||
| static void rna_userdef_virtual_pixel_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *UNUSED(ptr)) | static void rna_userdef_virtual_pixel_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *UNUSED(ptr)) | ||||
| { | { | ||||
| /* font's are stored at each DPI level, without this we can easy load 100's of fonts */ | /* font's are stored at each DPI level, without this we can easy load 100's of fonts */ | ||||
| BLF_cache_clear(); | BLF_cache_clear(true); | ||||
| BKE_blender_userdef_refresh(); | BKE_blender_userdef_refresh(); | ||||
| Context not available. | |||||
| static void rna_userdef_language_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr)) | static void rna_userdef_language_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr)) | ||||
| { | { | ||||
| BLF_cache_clear(); | BLF_cache_clear(true); | ||||
| BLT_lang_set(NULL); | BLT_lang_set(NULL); | ||||
| UI_reinit_font(); | UI_reinit_font(); | ||||
| } | } | ||||
| Context not available. | |||||
| static void rna_userdef_text_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr)) | static void rna_userdef_text_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr)) | ||||
| { | { | ||||
| BLF_cache_clear(); | BLF_cache_clear(true); | ||||
| WM_main_add_notifier(NC_WINDOW, NULL); | WM_main_add_notifier(NC_WINDOW, NULL); | ||||
| } | } | ||||
| Context not available. | |||||