Improve scaler_ctx_scale_direct macro

This commit is contained in:
twinaphex 2018-03-11 17:46:39 +01:00
parent 4552002945
commit d6eda2502d

View File

@ -34,13 +34,15 @@
RETRO_BEGIN_DECLS
#define scaler_ctx_scale_direct(ctx, output, input) \
if (ctx->unscaled) \
{ \
if (ctx && ctx->unscaled && ctx->direct_pixconv) \
/* Just perform straight pixel conversion. */ \
ctx->direct_pixconv(output, input, \
ctx->out_width, ctx->out_height, \
ctx->out_width, ctx->out_height, \
ctx->out_stride, ctx->in_stride); \
else \
scaler_ctx_scale(ctx, output, input)
scaler_ctx_scale(ctx, output, input); \
}
static INLINE void video_frame_convert_rgb16_to_rgb32(
struct scaler_ctx *scaler,