fixed missing gaps showing
This commit is contained in:
parent
dce97e6b3e
commit
9a6786b2b5
3 changed files with 58 additions and 80 deletions
|
|
@ -86,37 +86,3 @@ struct ct_bounds *dup_bounds(const struct ct_bounds *const bounds) {
|
|||
|
||||
return dup;
|
||||
}
|
||||
|
||||
/* Calculate the dimensions for nodes resulting from a bifurcation.
|
||||
* Returns 0 on success, and 1 on failure if any width/height are 0 characters.
|
||||
* WARNING: This function does not guarantee the x,y positions returned
|
||||
* WARNING: are valid screen coordinates.
|
||||
*/
|
||||
// int bifurcate_dims(const struct ct_dims *const parent_dims,
|
||||
// const enum ct_axis axis, const float ratio,
|
||||
// struct ct_dims **const dims0, struct ct_dims **const
|
||||
// dims1) {
|
||||
// assert(0 < ratio && ratio < 1);
|
||||
// struct ct_dims *_dims0, *_dims1;
|
||||
|
||||
// _dims0 = dup_dims(parent_dims);
|
||||
// _dims1 = dup_dims(parent_dims);
|
||||
|
||||
// if (axis == AXIS_X) {
|
||||
// _dims0->width *= ratio;
|
||||
// _dims1->width -= _dims0->width;
|
||||
// _dims1->x += _dims0->width;
|
||||
// } else {
|
||||
// _dims0->height *= ratio;
|
||||
// _dims1->height -= _dims0->height;
|
||||
// _dims1->y += _dims0->height;
|
||||
// }
|
||||
|
||||
// if (!_dims0->width || !_dims0->height || !_dims1->width || !_dims1->height)
|
||||
// return 1;
|
||||
|
||||
// // propagate bifurcated dimensions
|
||||
// *dims0 = _dims0;
|
||||
// *dims1 = _dims1;
|
||||
// return 0;
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue