diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-03 16:14:01 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-03 16:14:01 +0300 |
commit | d8ed4c389c750f0513a7024fa5dadeb28c05749b (patch) | |
tree | b84d16e983691c3b95b1bf01ee6264a986eeddf9 /source/blender/editors/include/UI_view2d.h | |
parent | 92cbb4b033ee236aafefbf22b2e2adfb363d36b1 (diff) |
2.5 fixes
- View2d bug: it was taking sliders into account for setting the
window matrix, which it shouldn't (glViewport does). This caused
error offset in drawing, like for current-frame scrolling.
- Current frame scrolling in TimeWindow back on window level.
(used to crash, but that was fixed in WM)
- Made UI_view2d_region_to_view accept ints, no shorts
- removed debug function in interface_ops.c
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-rw-r--r-- | source/blender/editors/include/UI_view2d.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index cd2345bf247..86f47efd284 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -99,7 +99,7 @@ void UI_view2d_draw_scrollers(const struct bContext *C, struct View2D *v2d, View void UI_view2d_free_scrollers(View2DScrollers *scrollers); /* coordinate conversion */ -void UI_view2d_region_to_view(struct View2D *v2d, short x, short y, float *viewx, float *viewy); +void UI_view2d_region_to_view(struct View2D *v2d, int x, int y, float *viewx, float *viewy); void UI_view2d_view_to_region(struct View2D *v2d, float x, float y, short *regionx, short *regiony); void UI_view2d_to_region_no_clip(struct View2D *v2d, float x, float y, short *regionx, short *region_y); |