migrant a SDL3

This commit is contained in:
2025-03-25 14:13:58 +01:00
parent 9cc41aaf53
commit f1b0303474
71 changed files with 303 additions and 360 deletions

View File

@@ -1,6 +1,6 @@
#include "on_screen_help.h"
#include <SDL2/SDL_blendmode.h> // Para SDL_BLENDMODE_BLEND
#include <SDL2/SDL_pixels.h> // Para SDL_PIXELFORMAT_RGBA8888
#include <SDL3/SDL_blendmode.h> // Para SDL_BLENDMODE_BLEND
#include <SDL3/SDL_pixels.h> // Para SDL_PIXELFORMAT_RGBA8888
#include <memory> // Para make_unique, unique_ptr
#include "lang.h" // Para getText
#include "param.h" // Para Param, ParamGame, param
@@ -82,7 +82,7 @@ void OnScreenHelp::render()
{
if (state != OnScreenHelpStatus::hidden)
{
SDL_RenderCopy(Screen::get()->getRenderer(), texture, nullptr, &dest);
SDL_RenderTexture(Screen::get()->getRenderer(), texture, nullptr, &dest);
}
}