# screen_reflow

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L649
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-screen-c-screen_reflow/

```c
static void screen_reflow(struct screen *, u_int, u_int *, u_int *, int)
```

## Parameters

- `s` (`struct screen *`)
- `new_x` (`u_int`)
- `cx` (`u_int *`)
- `cy` (`u_int *`)
- `cursor` (`int`)

## Called by

- [`screen_resize_cursor`](/en/tmux/3.7c/reference/c-function-screen_resize_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L369)

## Calls

- [`grid_reflow`](/en/tmux/3.7c/reference/c-function-grid_reflow/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L659)
- [`grid_unwrap_position`](/en/tmux/3.7c/reference/c-function-grid_unwrap_position/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L662)
- [`grid_wrap_position`](/en/tmux/3.7c/reference/c-function-grid_wrap_position/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L654)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L655)

## Referenced declarations

- [`screen.grid`](/en/tmux/3.7c/reference/c-struct-screen-grid/) (attribute)
- [`grid.hsize`](/en/tmux/3.7c/reference/c-struct-grid-hsize/) (attribute)
- [`screen`](/en/tmux/3.7c/reference/c-struct-screen/) (struct)
