diff options
Diffstat (limited to 'source/blender/editors/space_file/space_file.c')
-rw-r--r-- | source/blender/editors/space_file/space_file.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index 21b705cbb44..43939b9ff54 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -449,7 +449,6 @@ static void file_main_region_draw(const bContext *C, ARegion *region) FileSelectParams *params = ED_fileselect_get_params(sfile); View2D *v2d = ®ion->v2d; - View2DScrollers *scrollers; float col[3]; /* Needed, because filelist is not initialized on loading */ @@ -459,7 +458,7 @@ static void file_main_region_draw(const bContext *C, ARegion *region) /* clear and setup matrix */ UI_GetThemeColor3fv(TH_BACK, col); - GPU_clear_color(col[0], col[1], col[2], 0.0); + GPU_clear_color(col[0], col[1], col[2], 1.0f); GPU_clear(GPU_COLOR_BIT); /* Allow dynamically sliders to be set, saves notifiers etc. */ @@ -509,9 +508,7 @@ static void file_main_region_draw(const bContext *C, ARegion *region) /* scrollers */ rcti view_rect; ED_fileselect_layout_maskrect(sfile->layout, v2d, &view_rect); - scrollers = UI_view2d_scrollers_calc(v2d, &view_rect); - UI_view2d_scrollers_draw(v2d, scrollers); - UI_view2d_scrollers_free(scrollers); + UI_view2d_scrollers_draw(v2d, &view_rect); } static void file_operatortypes(void) |