Befor NewSurface Fix

This commit is contained in:
2018-06-29 15:28:06 -04:00
parent 0a17c2cfe7
commit f85ff9fa96
10 changed files with 94 additions and 22 deletions
@@ -20,8 +20,6 @@
using UtilityEngine::cString;
namespace UtilityEngine {
/* Singleton */
class EXPORT_FROM_MYDLL cUtility
@@ -51,17 +49,14 @@ namespace UtilityEngine {
void Message( const cString& msg, const cString& funcName = "", const eTypeSDL typeSDL = eTypeSDL::NONE ) const;
void PrintVersion( const eTypeSDL typeSDL = eTypeSDL::ALL ) const;
private:
///Functions
void VersionParser( const cString& runCompiled, const SDL_version& version, const cString& type ) const;
private:
///Variables
static cUtility* sp_inst;// = nullptr
};/// END CLASS DEFINITION cUtility
}/// END NAMESPACE DEFINITION UtilityEngine
#endif/// END IFNDEF _CUTILITY_HPP_
@@ -77,7 +77,8 @@ const bool cVideo::Setup()
void cVideo::CleanUp()
{
SDL_DestroyWindow(mp_window);
if (mp_window != nullptr)
SDL_DestroyWindow(mp_window);
mp_window = nullptr;
}