render: render_resize_*() returns a boolean indicating whether size changed.

This commit is contained in:
Daniel Eklöf 2020-02-25 19:51:03 +01:00
parent a4d77608b9
commit 595b32ddf9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 12 additions and 9 deletions

View file

@ -1,4 +1,5 @@
#pragma once
#include <stdbool.h>
#include "terminal.h"
#include "fdm.h"
@ -8,8 +9,8 @@ struct renderer;
struct renderer *render_init(struct fdm *fdm, struct wayland *wayl);
void render_destroy(struct renderer *renderer);
void render_resize(struct terminal *term, int width, int height);
void render_resize_force(struct terminal *term, int width, int height);
bool render_resize(struct terminal *term, int width, int height);
bool render_resize_force(struct terminal *term, int width, int height);
void render_set_title(struct terminal *term, const char *title);
void render_refresh(struct terminal *term);