fix bifurcation AXIS_Y bug
This commit is contained in:
parent
79f5c5235a
commit
fce84f1844
1 changed files with 2 additions and 3 deletions
|
|
@ -119,7 +119,7 @@ static int bifurcate_dims(const struct crs_node *parent,
|
||||||
} else {
|
} else {
|
||||||
_dims0->height *= ratio;
|
_dims0->height *= ratio;
|
||||||
_dims1->height -= _dims0->height;
|
_dims1->height -= _dims0->height;
|
||||||
_dims1->y += _dims1->height;
|
_dims1->y += _dims0->height;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_dims0->width || !_dims0->height || !_dims1->width || !_dims1->height) {
|
if (!_dims0->width || !_dims0->height || !_dims1->width || !_dims1->height) {
|
||||||
|
|
@ -162,8 +162,7 @@ static void resize_node(struct crs_node *node, struct crs_nodedims *new_dims) {
|
||||||
* axis - controls which direction the subdivision occurs
|
* axis - controls which direction the subdivision occurs
|
||||||
* invert_axis - invert index of the original node in the new abstract node
|
* invert_axis - invert index of the original node in the new abstract node
|
||||||
*/
|
*/
|
||||||
void bifurcate_window_node(struct crs_node **node,
|
void bifurcate_window_node(struct crs_node **node, const enum crs_axis axis,
|
||||||
const enum crs_axis axis,
|
|
||||||
const int invert_axis, const float ratio) {
|
const int invert_axis, const float ratio) {
|
||||||
assert((*node)->type == NODE_WINDOW);
|
assert((*node)->type == NODE_WINDOW);
|
||||||
struct crs_nodedims *dims0, *dims1;
|
struct crs_nodedims *dims0, *dims1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue