Added some runtime protections. Fixed minor things.

This commit is contained in:
2025-12-15 16:19:44 +02:00
parent 3d45fc89fc
commit af9ebe5fe8
4 changed files with 11 additions and 2 deletions

View File

@@ -26,6 +26,11 @@ m_radius(radius)
void WidgetRect::draw()
{
if (nullptr == m_surface)
{
return;
}
// Clear surface
SDL_FillRect(m_surface, nullptr, SDL_MapRGBA(m_surface->format, 255, 255, 255, SDL_ALPHA_TRANSPARENT));