drone: update builders

This commit is contained in:
nick black 2020-06-19 14:10:18 -04:00
parent 641f0cb894
commit 4a3d436e5b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
7 changed files with 22 additions and 7 deletions

View File

@ -5,7 +5,7 @@ name: debian-unstable
steps: steps:
- name: debian-build - name: debian-build
image: dankamongmen/unstable_builder:2020-05-23a image: dankamongmen/unstable_builder:2020-06-19a
commands: commands:
- export LANG=en_US.UTF-8 - export LANG=en_US.UTF-8
- mkdir build - mkdir build
@ -20,7 +20,7 @@ name: ubuntu-focal
steps: steps:
- name: ubuntu-build - name: ubuntu-build
image: dankamongmen/focal:2020-05-23a image: dankamongmen/focal:2020-06-19a
commands: commands:
- export LANG=en_US.UTF-8 - export LANG=en_US.UTF-8
- mkdir build - mkdir build
@ -35,7 +35,7 @@ name: fedora-rawhide
steps: steps:
- name: fedora-rawhide - name: fedora-rawhide
image: dankamongmen/fedora33:2020-06-08a image: dankamongmen/fedora33:2020-06-19a
commands: commands:
- export LANG=en_US.UTF-8 - export LANG=en_US.UTF-8
- dnf install -y doctest-devel - dnf install -y doctest-devel

View File

@ -7,7 +7,7 @@ rearrangements of Notcurses.
* `ncdirect_render_image()` has been added, allowing images to be * `ncdirect_render_image()` has been added, allowing images to be
rendered in direct mode. rendered in direct mode.
* `ncvisual_geom()` now takes scaling into account. * `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, determine whether the full RGB space is available to us. If not,
we only have palette-indexed pseudocolor. we only have palette-indexed pseudocolor.

View File

@ -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 // Display an image using the specified blitter and scaling. The image may
// be arbitrarily many rows -- the output will scroll -- but will only occupy // be arbitrarily many rows -- the output will scroll -- but will only occupy
// the column of the cursor, and those to the right. // 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 ## Alignment

View File

@ -52,6 +52,8 @@ ncdirect_init - minimal notcurses instances for styling text
**int ncdirect_cursor_down(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);**
# DESCRIPTION # DESCRIPTION
**ncdirect_init** prepares the **FILE** provided as **fp** (which must **ncdirect_init** prepares the **FILE** provided as **fp** (which must

View File

@ -130,8 +130,8 @@ API int ncdirect_cursor_pop(struct ncdirect* n);
// Display an image using the specified blitter and scaling. The image may // Display an image using the specified blitter and scaling. The image may
// // be arbitrarily many rows -- the output will scroll -- but will only occupy // // be arbitrarily many rows -- the output will scroll -- but will only occupy
// // the column of the cursor, and those to the right. // // the column of the cursor, and those to the right.
API nc_err_e ncdirect_render_image(const char* filename, ncblitter_e blitter, API nc_err_e ncdirect_render_image(struct ncdirect* n, const char* filename,
ncscale_e scale); ncblitter_e blitter, ncscale_e scale);
// Clear the screen. // Clear the screen.
API int ncdirect_clear(struct ncdirect* nc); API int ncdirect_clear(struct ncdirect* nc);

View File

@ -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_left(struct ncdirect* nc, int num);
int ncdirect_cursor_right(struct ncdirect* nc, int num); int ncdirect_cursor_right(struct ncdirect* nc, int num);
int ncdirect_cursor_down(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 { typedef enum {
NCERR_SUCCESS, NCERR_SUCCESS,
NCERR_NOMEM, NCERR_NOMEM,

View File

@ -210,6 +210,17 @@ int ncdirect_cursor_pop(ncdirect* n){
return term_emit("rc", n->tcache.rc, n->ttyfp, false); 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 ncdirect_stop(ncdirect* nc){
int ret = 0; int ret = 0;
if(nc){ if(nc){