| 374 | |
| 375 | #ifndef USE_SDL1 |
| 376 | void ReinitializeTexture() |
| 377 | { |
| 378 | if (texture) |
| 379 | texture.reset(); |
| 380 | |
| 381 | if (renderer == nullptr) |
| 382 | return; |
| 383 | |
| 384 | auto quality = StrCat(static_cast<int>(*sgOptions.Graphics.scaleQuality)); |
| 385 | SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, quality.c_str()); |
| 386 | |
| 387 | texture = SDLWrap::CreateTexture(renderer, DEVILUTIONX_DISPLAY_TEXTURE_FORMAT, SDL_TEXTUREACCESS_STREAMING, gnScreenWidth, gnScreenHeight); |
| 388 | } |
| 389 | |
| 390 | void ReinitializeIntegerScale() |
| 391 | { |
no test coverage detected