mirror of https://github.com/ppy/SDL3-CS.git
Init SDL too
This commit is contained in:
parent
28951012e3
commit
5d7ad9a1b8
|
|
@ -12,6 +12,8 @@ namespace SDL.Tests
|
||||||
[Test]
|
[Test]
|
||||||
public void TestBasic()
|
public void TestBasic()
|
||||||
{
|
{
|
||||||
|
SDL_Init(0);
|
||||||
|
|
||||||
const IMG_InitFlags flags = IMG_InitFlags.IMG_INIT_PNG;
|
const IMG_InitFlags flags = IMG_InitFlags.IMG_INIT_PNG;
|
||||||
var actual = IMG_Init(flags);
|
var actual = IMG_Init(flags);
|
||||||
|
|
||||||
|
|
@ -37,6 +39,7 @@ namespace SDL.Tests
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
IMG_Quit();
|
IMG_Quit();
|
||||||
|
SDL_Quit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,8 @@ namespace SDL.Tests
|
||||||
[Test]
|
[Test]
|
||||||
public void TestBasic()
|
public void TestBasic()
|
||||||
{
|
{
|
||||||
|
SDL_Init(0);
|
||||||
|
|
||||||
bool init = TTF_Init();
|
bool init = TTF_Init();
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
@ -36,6 +38,7 @@ namespace SDL.Tests
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
TTF_Quit();
|
TTF_Quit();
|
||||||
|
SDL_Quit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue