mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
drone: update builders
This commit is contained in:
parent
641f0cb894
commit
4a3d436e5b
@ -5,7 +5,7 @@ name: debian-unstable
|
||||
|
||||
steps:
|
||||
- name: debian-build
|
||||
image: dankamongmen/unstable_builder:2020-05-23a
|
||||
image: dankamongmen/unstable_builder:2020-06-19a
|
||||
commands:
|
||||
- export LANG=en_US.UTF-8
|
||||
- mkdir build
|
||||
@ -20,7 +20,7 @@ name: ubuntu-focal
|
||||
|
||||
steps:
|
||||
- name: ubuntu-build
|
||||
image: dankamongmen/focal:2020-05-23a
|
||||
image: dankamongmen/focal:2020-06-19a
|
||||
commands:
|
||||
- export LANG=en_US.UTF-8
|
||||
- mkdir build
|
||||
@ -35,7 +35,7 @@ name: fedora-rawhide
|
||||
|
||||
steps:
|
||||
- name: fedora-rawhide
|
||||
image: dankamongmen/fedora33:2020-06-08a
|
||||
image: dankamongmen/fedora33:2020-06-19a
|
||||
commands:
|
||||
- export LANG=en_US.UTF-8
|
||||
- dnf install -y doctest-devel
|
||||
|
2
NEWS.md
2
NEWS.md
@ -7,7 +7,7 @@ rearrangements of Notcurses.
|
||||
* `ncdirect_render_image()` has been added, allowing images to be
|
||||
rendered in direct mode.
|
||||
* `ncvisual_geom()` now takes scaling into account.
|
||||
* **notcurses_cantruecolor()** has been added, allowing clients to
|
||||
* `notcurses_cantruecolor()` has been added, allowing clients to
|
||||
determine whether the full RGB space is available to us. If not,
|
||||
we only have palette-indexed pseudocolor.
|
||||
|
||||
|
3
USAGE.md
3
USAGE.md
@ -327,7 +327,8 @@ int ncdirect_cursor_down(struct ncdirect* nc, int num);
|
||||
// Display an image using the specified blitter and scaling. The image may
|
||||
// be arbitrarily many rows -- the output will scroll -- but will only occupy
|
||||
// the column of the cursor, and those to the right.
|
||||
nc_err_e ncdirect_render_image(const char* filename, ncblitter_e blitter, ncscale_e scale);
|
||||
nc_err_e ncdirect_render_image(struct ncdirect* nc, const char* filename,
|
||||
ncblitter_e blitter, ncscale_e scale);
|
||||
```
|
||||
|
||||
## Alignment
|
||||
|
@ -52,6 +52,8 @@ ncdirect_init - minimal notcurses instances for styling text
|
||||
|
||||
**int ncdirect_cursor_down(struct ncdirect* nc, int num);**
|
||||
|
||||
**nc_err_e ncdirect_render_image(struct ncdirect* n, const char* filename, ncblitter_e blitter, ncscale_e scale);**
|
||||
|
||||
# DESCRIPTION
|
||||
|
||||
**ncdirect_init** prepares the **FILE** provided as **fp** (which must
|
||||
|
@ -130,8 +130,8 @@ API int ncdirect_cursor_pop(struct ncdirect* n);
|
||||
// Display an image using the specified blitter and scaling. The image may
|
||||
// // be arbitrarily many rows -- the output will scroll -- but will only occupy
|
||||
// // the column of the cursor, and those to the right.
|
||||
API nc_err_e ncdirect_render_image(const char* filename, ncblitter_e blitter,
|
||||
ncscale_e scale);
|
||||
API nc_err_e ncdirect_render_image(struct ncdirect* n, const char* filename,
|
||||
ncblitter_e blitter, ncscale_e scale);
|
||||
|
||||
// Clear the screen.
|
||||
API int ncdirect_clear(struct ncdirect* nc);
|
||||
|
@ -275,6 +275,7 @@ int ncdirect_cursor_up(struct ncdirect* nc, int num);
|
||||
int ncdirect_cursor_left(struct ncdirect* nc, int num);
|
||||
int ncdirect_cursor_right(struct ncdirect* nc, int num);
|
||||
int ncdirect_cursor_down(struct ncdirect* nc, int num);
|
||||
nc_err_e ncdirect_render_image(struct ncdirect* n, const char* filename, ncblitter_e blitter, ncscale_e scale);
|
||||
typedef enum {
|
||||
NCERR_SUCCESS,
|
||||
NCERR_NOMEM,
|
||||
|
@ -210,6 +210,17 @@ int ncdirect_cursor_pop(ncdirect* n){
|
||||
return term_emit("rc", n->tcache.rc, n->ttyfp, false);
|
||||
}
|
||||
|
||||
nc_err_e ncdirect_render_image(ncdirect* n, const char* file, ncblitter_e blitter, ncscale_e scale){
|
||||
nc_err_e ret;
|
||||
struct ncvisual* ncv = ncvisual_from_file(file, &ret);
|
||||
if(ncv == NULL){
|
||||
return ret;
|
||||
}
|
||||
// FIXME
|
||||
ncvisual_destroy(ncv);
|
||||
return NCERR_SUCCESS;
|
||||
}
|
||||
|
||||
int ncdirect_stop(ncdirect* nc){
|
||||
int ret = 0;
|
||||
if(nc){
|
||||
|
Loading…
x
Reference in New Issue
Block a user