[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57240] trunk/blender/source/blender/ editors: fix [#35613] Dopesheet, Graph Editor Trouble Selecting Channels
Campbell Barton
ideasman42 at gmail.com
Tue Jun 4 22:26:59 CEST 2013
Revision: 57240
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57240
Author: campbellbarton
Date: 2013-06-04 20:26:58 +0000 (Tue, 04 Jun 2013)
Log Message:
-----------
fix [#35613] Dopesheet, Graph Editor Trouble Selecting Channels
Modified Paths:
--------------
trunk/blender/source/blender/editors/include/UI_view2d.h
trunk/blender/source/blender/editors/interface/view2d.c
Modified: trunk/blender/source/blender/editors/include/UI_view2d.h
===================================================================
--- trunk/blender/source/blender/editors/include/UI_view2d.h 2013-06-04 19:37:18 UTC (rev 57239)
+++ trunk/blender/source/blender/editors/include/UI_view2d.h 2013-06-04 20:26:58 UTC (rev 57240)
@@ -178,13 +178,13 @@
void UI_view2d_scrollers_free(View2DScrollers *scrollers);
/* list view tools */
-void UI_view2d_listview_cell_to_view(struct View2D *v2d, short columnwidth, short rowheight,
+void UI_view2d_listview_cell_to_view(struct View2D *v2d, float columnwidth, float rowheight,
float startx, float starty, int column, int row,
struct rctf *rect);
-void UI_view2d_listview_view_to_cell(struct View2D *v2d, short columnwidth, short rowheight,
+void UI_view2d_listview_view_to_cell(struct View2D *v2d, float columnwidth, float rowheight,
float startx, float starty, float viewx, float viewy,
int *column, int *row);
-void UI_view2d_listview_visible_cells(struct View2D *v2d, short columnwidth, short rowheight,
+void UI_view2d_listview_visible_cells(struct View2D *v2d, float columnwidth, float rowheight,
float startx, float starty, int *column_min, int *column_max,
int *row_min, int *row_max);
Modified: trunk/blender/source/blender/editors/interface/view2d.c
===================================================================
--- trunk/blender/source/blender/editors/interface/view2d.c 2013-06-04 19:37:18 UTC (rev 57239)
+++ trunk/blender/source/blender/editors/interface/view2d.c 2013-06-04 20:26:58 UTC (rev 57240)
@@ -1860,7 +1860,7 @@
* - column, row = the 2d-coordinates (in 2D-view / 'tot' rect space) the cell exists at
* - rect = coordinates of the cell (passed as single var instead of 4 separate, as it's more useful this way)
*/
-void UI_view2d_listview_cell_to_view(View2D *v2d, short columnwidth, short rowheight,
+void UI_view2d_listview_cell_to_view(View2D *v2d, float columnwidth, float rowheight,
float startx, float starty,
int column, int row, rctf *rect)
{
@@ -1905,7 +1905,7 @@
* - viewx, viewy = 2D-coordinates (in 2D-view / 'tot' rect space) to get the cell for
* - column, row = the 'coordinates' of the relevant 'cell'
*/
-void UI_view2d_listview_view_to_cell(View2D *v2d, short columnwidth, short rowheight, float startx, float starty,
+void UI_view2d_listview_view_to_cell(View2D *v2d, float columnwidth, float rowheight, float startx, float starty,
float viewx, float viewy, int *column, int *row)
{
/* adjust view coordinates to be all positive ints, corrected for the start offset */
@@ -1938,7 +1938,7 @@
* - startx, starty = coordinates that the list starts from, which should be (0,0) for most views
* - column/row_min/max = the starting and ending column/row indices
*/
-void UI_view2d_listview_visible_cells(View2D *v2d, short columnwidth, short rowheight, float startx, float starty,
+void UI_view2d_listview_visible_cells(View2D *v2d, float columnwidth, float rowheight, float startx, float starty,
int *column_min, int *column_max, int *row_min, int *row_max)
{
/* using 'cur' rect coordinates, call the cell-getting function to get the cells for this */
More information about the Bf-blender-cvs
mailing list