eagle: remove direct libav calls

pull/232/head
nick black 5 years ago
parent af7cf118a9
commit 90f750dec8
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1,4 +1,3 @@
#include <libavutil/frame.h>
#include "demo.h"
// 0: transparent
@ -61,14 +60,16 @@ zoom_map(struct notcurses* nc, const char* map){
ncvisual_destroy(ncv);
return NULL;
}
int vheight;
int vwidth;
ncplane_dim_yx(ncvisual_plane(ncv), &vheight, &vwidth);
ncvisual_destroy(ncv);
// we start at the lower left corner of the outzoomed map
int truex, truey; // dimensions of true display
notcurses_term_dim_yx(nc, &truey, &truex);
int vwidth = frame->width;
int vx = vwidth;
int vheight = frame->height; // dimensions of unzoomed map
int vy = vheight / 2;
vheight /= 2;
int vy = vheight;
int zoomy = truey;
int zoomx = truex;
struct ncplane* zncp = NULL;

Loading…
Cancel
Save