mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
[ncplayer] continue to honor split margins for pixels in -k #1411
This commit is contained in:
parent
06f9a0ab34
commit
4c9c2e1ed1
@ -301,8 +301,17 @@ int direct_mode_player(int argc, char** argv, ncscale_e scalemode,
|
||||
failed = true;
|
||||
break;
|
||||
}
|
||||
printf("%*.*s", lmargin, lmargin, "");
|
||||
if(dm.raster_image(faken, NCAlign::Center)){
|
||||
// FIXME we want to honor the different left and right margins, but that
|
||||
// would require raster_image() knowing how far over we were starting for
|
||||
// multiline cellular blittings...
|
||||
ncpp::NCAlign a;
|
||||
if(blitter == NCBLIT_PIXEL){
|
||||
printf("%*.*s", lmargin, lmargin, "");
|
||||
a = NCAlign::Left;
|
||||
}else{
|
||||
a = NCAlign::Center;
|
||||
}
|
||||
if(dm.raster_image(faken, a)){
|
||||
failed = true;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user