summaryrefslogtreecommitdiff
path: root/tests/sdl_alloctext.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sdl_alloctext.c')
-rw-r--r--tests/sdl_alloctext.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/sdl_alloctext.c b/tests/sdl_alloctext.c
index 0ee75f07..173be348 100644
--- a/tests/sdl_alloctext.c
+++ b/tests/sdl_alloctext.c
@@ -1,20 +1,17 @@
#include <stdio.h>
-#include <stdlib.h>
#include <SDL.h>
#include <SDL_ttf.h>
-int main(int argc, char **argv)
+int main()
{
int result = 0;
SDL_Init(SDL_INIT_VIDEO);
SDL_Surface *screen = SDL_SetVideoMode(600, 450, 32, SDL_HWSURFACE);
+ TTF_Init();
TTF_Font *font = TTF_OpenFont("myfont.ttf", 40);
- if (argc == 12) font = (TTF_Font*)malloc(1024);
- if (argc % 3) free(font);
-
int i = 0;
while (i < 200)
{