Skip to content

Commit

Permalink
Update sdl2_renderer.h
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkulling authored Jan 19, 2025
1 parent 79ae55a commit 3dee47e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/backends/sdl2_renderer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
MIT License
Copyright (c) 2022-2024 Kim Kulling
Copyright (c) 2022-2025 Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -36,9 +36,10 @@ struct SDL_Renderer;
struct SDL_Texture;

namespace tinyui {


/// @brief Implementation of a SDL2 surface.
struct SurfaceImpl {
SDL_Surface *mSurface;
SDL_Surface *mSurface = nullptr;

~SurfaceImpl() {
clear();
Expand All @@ -53,6 +54,7 @@ struct SurfaceImpl {
}
};

/// @brief Implementation of a SDL2 TTF font.
struct FontImpl {
TTF_Font *mFontImpl;

Expand Down

0 comments on commit 3dee47e

Please sign in to comment.