ncdirect: handle new scalings #1250

This commit is contained in:
nick black 2020-12-25 18:43:34 -05:00 committed by Nick Black
parent dd1cdc40d5
commit 15664b9799

View File

@ -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{