bug fixes + general X axis splitting!

This commit is contained in:
Emile Clark-Boman 2025-09-16 21:30:14 +10:00
parent 5e99b09f8a
commit dce97e6b3e
6 changed files with 69 additions and 33 deletions

View file

@ -3,6 +3,7 @@
#include "ncrswrap.h"
#include "surface.h"
#include "_ncurses.h"
#include "ncurses.h"
static inline struct ct_surface *__surface(struct ct_dims *const dims,
struct ct_bounds *const bounds,
@ -46,10 +47,6 @@ void rebind_surface(struct ct_surface *const surface,
surface->bounds = bounds;
}
void sfclear(struct ct_surface *const surface) {
wclear(surface->win);
}
int sfwidth(const struct ct_surface *const surface) {
return getmaxx(surface->win);
}
@ -73,3 +70,12 @@ struct ct_dims *sfdims(const struct ct_surface *const surface) {
return new_dims(x, y, width, height);
}
void sfclear(struct ct_surface *const surface) {
wclear(surface->win);
surface->updatereq = true;
}
void sfflush(struct ct_surface *const surface) {
wnoutrefresh(surface->win);
surface->updatereq = false;
}