version 1.40, 2016/09/02 20:57:20 |
version 1.41, 2016/10/10 21:29:23 |
|
|
|
|
#include "tmux.h" |
#include "tmux.h" |
|
|
void screen_resize_x(struct screen *, u_int); |
static void screen_resize_x(struct screen *, u_int); |
void screen_resize_y(struct screen *, u_int); |
static void screen_resize_y(struct screen *, u_int); |
|
|
/* Create a new screen. */ |
/* Create a new screen. */ |
void |
void |
|
|
screen_reflow(s, sx); |
screen_reflow(s, sx); |
} |
} |
|
|
void |
static void |
screen_resize_x(struct screen *s, u_int sx) |
screen_resize_x(struct screen *s, u_int sx) |
{ |
{ |
struct grid *gd = s->grid; |
struct grid *gd = s->grid; |
|
|
gd->sx = sx; |
gd->sx = sx; |
} |
} |
|
|
void |
static void |
screen_resize_y(struct screen *s, u_int sy) |
screen_resize_y(struct screen *s, u_int sy) |
{ |
{ |
struct grid *gd = s->grid; |
struct grid *gd = s->grid; |
|
|
needed = sy - oldy; |
needed = sy - oldy; |
|
|
/* |
/* |
* Try to pull as much as possible out of scrolled history, if is |
* Try to pull as much as possible out of scrolled history, if |
* is enabled. |
* is is enabled. |
*/ |
*/ |
available = gd->hscrolled; |
available = gd->hscrolled; |
if (gd->flags & GRID_HISTORY && available > 0) { |
if (gd->flags & GRID_HISTORY && available > 0) { |