From 4d6584ba6a22d4c06cb5e5ecce38dded1247da3f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 1 May 2015 01:49:58 +1000 Subject: UI: use enum for thumbnail size --- source/blender/editors/space_file/filesel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/space_file/filesel.c') diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index d89e55cb55f..82409c9ecb4 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -103,7 +103,7 @@ short ED_fileselect_set_params(SpaceFile *sfile) BLI_split_dirfile(G.main->name, sfile->params->dir, sfile->params->file, sizeof(sfile->params->dir), sizeof(sfile->params->file)); sfile->params->filter_glob[0] = '\0'; /* set the default thumbnails size */ - sfile->params->thumbnails_size = 128; + sfile->params->thumbnail_size = 128; } params = sfile->params; @@ -529,8 +529,8 @@ void ED_fileselect_init_layout(struct SpaceFile *sfile, ARegion *ar) layout->textheight = textheight; if (params->display == FILE_IMGDISPLAY) { - layout->prv_w = ((float)params->thumbnails_size / 20.0f) * UI_UNIT_X; - layout->prv_h = ((float)params->thumbnails_size / 20.0f) * UI_UNIT_Y; + layout->prv_w = ((float)params->thumbnail_size / 20.0f) * UI_UNIT_X; + layout->prv_h = ((float)params->thumbnail_size / 20.0f) * UI_UNIT_Y; layout->tile_border_x = 0.3f * UI_UNIT_X; layout->tile_border_y = 0.3f * UI_UNIT_X; layout->prv_border_x = 0.3f * UI_UNIT_X; -- cgit v1.2.3