diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-30 18:49:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-30 18:49:58 +0300 |
commit | 4d6584ba6a22d4c06cb5e5ecce38dded1247da3f (patch) | |
tree | 91ee28e7f2521d87941dba61e87aedc171b80d0e /source/blender/editors/space_file | |
parent | 5ced6cb2bc52a50365e4bc4003994c39cdcb895f (diff) |
UI: use enum for thumbnail size
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/filesel.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |