region overlap feature missed view3d grid-scale text, increase string size for title text too.
This commit is contained in:
@@ -3234,7 +3234,8 @@ static void view3d_main_area_draw_info(const bContext *C, ARegion *ar, const cha
|
||||
BLI_snprintf(numstr, sizeof(numstr), "%s x %.4g", grid_unit, v3d->grid);
|
||||
}
|
||||
|
||||
BLF_draw_default_ascii(U.widget_unit, ar->winy - (USER_SHOW_VIEWPORTNAME ? 2 * U.widget_unit : U.widget_unit), 0.0f,
|
||||
BLF_draw_default_ascii(draw_name_offset(ar) + U.widget_unit,
|
||||
ar->winy - (USER_SHOW_VIEWPORTNAME ? 2 * U.widget_unit : U.widget_unit), 0.0f,
|
||||
numstr[0] ? numstr : grid_unit, sizeof(numstr));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ void wm_window_title(wmWindowManager *wm, wmWindow *win)
|
||||
|
||||
/* this is set to 1 if you don't have startup.blend open */
|
||||
if (G.save_over && G.main->name[0]) {
|
||||
char str[sizeof(G.main->name) + 12];
|
||||
char str[sizeof(G.main->name) + 24];
|
||||
BLI_snprintf(str, sizeof(str), "Blender%s [%s%s]", wm->file_saved ? "" : "*", G.main->name,
|
||||
G.main->recovered ? " (Recovered)" : "");
|
||||
GHOST_SetTitle(win->ghostwin, str);
|
||||
|
||||
Reference in New Issue
Block a user