mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +00:00
ncdirect: handle new scalings #1250
This commit is contained in:
parent
dd1cdc40d5
commit
15664b9799
@ -471,10 +471,10 @@ ncdirectv* ncdirect_render_frame(ncdirect* n, const char* file,
|
||||
return nullptr;
|
||||
}
|
||||
int disprows, dispcols;
|
||||
if(scale != NCSCALE_NONE){
|
||||
if(scale != NCSCALE_NONE && scale != NCSCALE_NONE_HIRES){
|
||||
dispcols = ncdirect_dim_x(n) * encoding_x_scale(bset);
|
||||
disprows = ncdirect_dim_y(n) * encoding_y_scale(bset);
|
||||
if(scale == NCSCALE_SCALE){
|
||||
if(scale == NCSCALE_SCALE || scale == NCSCALE_SCALE_HIRES){
|
||||
scale_visual(ncv, &disprows, &dispcols);
|
||||
}
|
||||
}else{
|
||||
|
Loading…
Reference in New Issue
Block a user