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>2016-03-04 22:37:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-03-04 22:37:56 +0300
commit55137629462d3ca2fb152b56cfe26507bdd2c352 (patch)
tree8d5693ab3a6b16fc665f35af089692cdab0831b4 /source/blender
parentf33e44151ebc454fef0338b76120dac67a106722 (diff)
Alternate fix for virtual-pixel update not working
On changing, clear drawable window to force update.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index f4c6fdf42f5..924bed3d580 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -144,12 +144,19 @@ static void rna_userdef_dpi_update(Main *UNUSED(bmain), Scene *UNUSED(scene), Po
WM_main_add_notifier(NC_SCREEN | NA_EDITED, NULL); /* refresh region sizes */
}
-static void rna_userdef_virtual_pixel_update(Main *UNUSED(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 */
BLF_cache_clear();
BKE_userdef_state();
+
+ /* force setting drawable again */
+ wmWindowManager *wm = bmain->wm.first;
+ if (wm) {
+ wm->windrawable = NULL;
+ }
+
WM_main_add_notifier(NC_WINDOW, NULL); /* full redraw */
WM_main_add_notifier(NC_SCREEN | NA_EDITED, NULL); /* refresh region sizes */
}