diff options
author | kdx <kikoodx@paranoici.org> | 2023-05-11 00:55:09 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-05-11 00:55:09 +0200 |
commit | 96b15868d306c8b3ded01fad8c37dc964baa767d (patch) | |
tree | 7db69659b1e61c93dcaab8d34aca9cce4ce43124 /sources/TZR_Init.c | |
parent | 7897350fb461e2803de639a03a2bfee06e85287d (diff) | |
download | tzr-96b15868d306c8b3ded01fad8c37dc964baa767d.tar.gz |
linear scaling config
Diffstat (limited to 'sources/TZR_Init.c')
-rw-r--r-- | sources/TZR_Init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/TZR_Init.c b/sources/TZR_Init.c index b6163c5..a10c2fb 100644 --- a/sources/TZR_Init.c +++ b/sources/TZR_Init.c @@ -74,7 +74,8 @@ _TZR_Init(const TZR_Config *config) return _sdl_error(); } - SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, 0); + SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, + ___tzr_config.scale_linear ? "1" : "0"); ___tzr_tick = 0; if (___tzr_config.target_fps > 0) { |