Changeset 2f9f352 in buchla-emu for emu


Ignore:
Timestamp:
07/22/2017 03:27:04 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
d94a7be
Parents:
de65155
Message:

Added SDL2_ttf.

Location:
emu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • emu/all.h

    rde65155 r2f9f352  
    2727
    2828#include <SDL2/SDL.h>
     29#include <SDL2/SDL_ttf.h>
    2930
    3031#define inf(...) SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__);
  • emu/sdl.c

    rde65155 r2f9f352  
    3232
    3333        SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_VERBOSE);
     34
     35        if (TTF_Init() < 0) {
     36                fail("TTF_Init() failed: %s", TTF_GetError());
     37        }
    3438}
    3539
    3640void sdl_quit(void)
    3741{
     42        TTF_Quit();
    3843        SDL_Quit();
    3944}
Note: See TracChangeset for help on using the changeset viewer.