[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33818] trunk/blender/source/blender/ editors/space_file/space_file.c: Bugfix, own collection:

Ton Roosendaal ton at blender.org
Mon Dec 20 19:29:33 CET 2010


Revision: 33818
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33818
Author:   ton
Date:     2010-12-20 19:29:32 +0100 (Mon, 20 Dec 2010)

Log Message:
-----------
Bugfix, own collection:

File Window draw error:
On start Blender in smaller sized window, a scalled down screen
causes the File Window main area to draw too high, clipping off
half of the top line. This case (scroll horizontal only) is not
handled as view2d type.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_file/space_file.c

Modified: trunk/blender/source/blender/editors/space_file/space_file.c
===================================================================
--- trunk/blender/source/blender/editors/space_file/space_file.c	2010-12-20 17:42:17 UTC (rev 33817)
+++ trunk/blender/source/blender/editors/space_file/space_file.c	2010-12-20 18:29:32 UTC (rev 33818)
@@ -327,6 +327,13 @@
 		v2d->scroll = V2D_SCROLL_BOTTOM;
 		v2d->keepofs &= ~V2D_LOCKOFS_X;
 		v2d->keepofs |= V2D_LOCKOFS_Y;
+		
+		/* XXX this happens on scaling down Screen (like from startup.blend) */
+		/* view2d has no type specific for filewindow case, which doesnt scroll vertically */
+		if(v2d->cur.ymax < 0) {
+			v2d->cur.ymin -= v2d->cur.ymax;
+			v2d->cur.ymax= 0;
+		}
 	}
 	/* v2d has initialized flag, so this call will only set the mask correct */
 	UI_view2d_region_reinit(v2d, V2D_COMMONVIEW_LIST, ar->winx, ar->winy);





More information about the Bf-blender-cvs mailing list