Index: source/blender/makesdna/DNA_userdef_types.h =================================================================== --- source/blender/makesdna/DNA_userdef_types.h (Revision 21467) +++ source/blender/makesdna/DNA_userdef_types.h (Arbeitskopie) @@ -95,6 +95,8 @@ uiFontStyle widgetlabel; uiFontStyle widget; + float pannelzoomlevel; + short minlabelchars; /* in characters */ short minwidgetchars; /* in characters */ @@ -106,7 +108,7 @@ short panelspace; short panelouter; - short pad[3]; + short pad[1]; } uiStyle; typedef struct uiWidgetColors { Index: source/blender/makesrna/intern/rna_userdef.c =================================================================== --- source/blender/makesrna/intern/rna_userdef.c (Revision 21467) +++ source/blender/makesrna/intern/rna_userdef.c (Arbeitskopie) @@ -184,6 +184,11 @@ RNA_def_struct_sdna(srna, "uiStyle"); RNA_def_struct_ui_text(srna, "Style", "Theme settings for style sets."); + prop= RNA_def_property(srna, "pannelzoomlevel", PROP_FLOAT, PROP_NONE); + RNA_def_property_range(prop, 0.5, 2.0); + RNA_def_property_ui_text(prop, "Pannel Zoom Level", "Default zoom level for pannel areas. (0.5 - 2.0, 1.0 = unchanged)"); + RNA_def_property_update(prop, NC_WINDOW, NULL); + prop= RNA_def_property(srna, "paneltitle", PROP_POINTER, PROP_NEVER_NULL); RNA_def_property_pointer_sdna(prop, NULL, "paneltitle"); RNA_def_property_struct_type(prop, "ThemeFontStyle"); Index: source/blender/editors/interface/view2d.c =================================================================== --- source/blender/editors/interface/view2d.c (Revision 21467) +++ source/blender/editors/interface/view2d.c (Arbeitskopie) @@ -155,7 +155,8 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy) { short tot_changed= 0; - + uiStyle *style= U.uistyles.first; + /* initialise data if there is a need for such */ if ((v2d->flag & V2D_IS_INITIALISED) == 0) { /* set initialised flag so that View2D doesn't get reinitialised next time again */ @@ -250,7 +251,11 @@ v2d->tot.ymax= 0.0f; v2d->tot.ymin= -winy; - v2d->cur= v2d->tot; + v2d->cur.xmin= 0.0f; + v2d->cur.xmax= winx * style->pannelzoomlevel; + + v2d->cur.ymax= 0.0f; + v2d->cur.ymin= -winy * style->pannelzoomlevel; } break; Index: source/blender/editors/interface/interface_style.c =================================================================== --- source/blender/editors/interface/interface_style.c (Revision 21467) +++ source/blender/editors/interface/interface_style.c (Arbeitskopie) @@ -89,6 +89,8 @@ BLI_addtail(styles, style); BLI_strncpy(style->name, name, MAX_STYLE_NAME); + style->pannelzoomlevel= 1.0; + style->paneltitle.uifont_id= UIFONT_DEFAULT; style->paneltitle.points= 13; style->paneltitle.kerning= 0.0;