mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-04 06:00:30 +00:00
[xray] bring slider plane to top #1518
This commit is contained in:
parent
80d93fdfb6
commit
7488a84121
@ -65,7 +65,9 @@ perframecb(struct ncvisual* ncv, struct ncvisual_options* vopts,
|
||||
// only need these two steps done once, but we can't do them in
|
||||
// main() due to the plane being created in ncvisual_stream() =[
|
||||
ncplane_set_resizecb(vopts->n, ncplane_resize_maximize);
|
||||
ncplane_move_above(vopts->n, vnewplane);
|
||||
// until #1518 is done, the stream isn't transparent, and thus it
|
||||
// can obstruct the slider if there are few enough rows. FIXME
|
||||
ncplane_move_above(vnewplane, vopts->n);
|
||||
|
||||
struct notcurses* nc = ncplane_notcurses(vopts->n);
|
||||
static int frameno = 0;
|
||||
|
@ -615,7 +615,7 @@ sex_trans_check(cell* c, const uint32_t rgbas[6], unsigned blendcolors){
|
||||
++div;
|
||||
}
|
||||
}
|
||||
if(transstring == 0){
|
||||
if(transstring == 0){ // there was no transparency
|
||||
return NULL;
|
||||
}
|
||||
cell_set_bg_alpha(c, CELL_ALPHA_TRANSPARENT);
|
||||
@ -685,7 +685,7 @@ sextant_blit(ncplane* nc, int linesize, const void* data,
|
||||
c->channels = 0;
|
||||
c->stylemask = 0;
|
||||
const char* egc = sex_trans_check(c, rgbas, bargs->u.cell.blendcolors);
|
||||
if(egc == NULL){
|
||||
if(egc == NULL){ // no transparency; run a full solver
|
||||
egc = sex_solver(rgbas, &c->channels, bargs->u.cell.blendcolors);
|
||||
cell_set_blitquadrants(c, 1, 1, 1, 1);
|
||||
}
|
||||
|
@ -321,7 +321,8 @@ write_sixel_data(FILE* fp, int leny, int lenx, const sixeltable* stab, int* pars
|
||||
// Set Raster Attributes - pan/pad=1 (pixel aspect ratio), Ph=lenx, Pv=leny
|
||||
// using Ph/Pv causes a background to be drawn using color register 0 for all
|
||||
// unspecified pixels, which we do not want.
|
||||
fprintf(fp, "\"1;2;%d;%d", lenx, leny);
|
||||
//fprintf(fp, "\"1;0;%d;%d", lenx, leny);
|
||||
(void)leny;
|
||||
|
||||
for(int i = 0 ; i < stab->colors ; ++i){
|
||||
const unsigned char* rgb = stab->table + i * CENTSIZE;
|
||||
|
Loading…
Reference in New Issue
Block a user