Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2009-03-10 11:54:35 +0300
committerMatt Ebb <matt@mke3.net>2009-03-10 11:54:35 +0300
commitd42e3c7be9d1b8849e3812b00a1572e754399397 (patch)
treeaa41536f9725ca58c450e8842fbb1b08b6a7a2f5 /source/blender/editors/space_file/file_ops.c
parent691b9292a42fcb871dce46ae17c5a1096c475ea5 (diff)
* More 2.5 UI tweaks - text/controls/file browser
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r--source/blender/editors/space_file/file_ops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index f280da2497e..31c96e07048 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -323,7 +323,9 @@ static void set_active_bookmark(FileSelectParams* params, struct ARegion* ar, sh
UI_view2d_region_to_view(&ar->v2d, x, y, &fx, &fy);
posy = ar->v2d.cur.ymax - 2*TILE_BORDER_Y - fy;
- params->active_bookmark = ((float)posy / (U.fontsize*3.0f/2.0f));
+ posy -= U.fontsize*2.0f; /* header */
+
+ params->active_bookmark = ((float)posy / (U.fontsize*2.0f));
if (params->active_bookmark < 0 || params->active_bookmark > nentries) {
params->active_bookmark = -1;
}