Skip to content

Commit

Permalink
normal demo: provide explicit NCBLIT_2x1 to ncvisual_from_plane() #1490
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed May 29, 2021
1 parent d2b5ffc commit e667ee0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/demo/normal.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ rotate_visual(struct notcurses* nc, struct ncplane* n, int dy, int dx){
fromx = (dx - dy * 2) / 2;
dx = dy * 2;
}
//fprintf(stderr, "ASK %d/%d @ %d/%d: %p\n", dy, dx, fromy, fromx);
struct ncvisual* ncv = ncvisual_from_plane(n, NCBLIT_DEFAULT, fromy, fromx, dy, dx);
//fprintf(stderr, "%d/%d @ %d/%d: %p\n", dy, dx, fromy, fromx, ncv);
struct ncvisual* ncv = ncvisual_from_plane(n, NCBLIT_2x1, fromy, fromx, dy, dx);
if(!ncv){
ncvisual_destroy(ncv);
return -1;
Expand Down

0 comments on commit e667ee0

Please sign in to comment.